-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yaml
58 lines (56 loc) · 1.37 KB
/
compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: '3.5'
services:
express:
container_name: express
build:
context: back/express
restart: always
networks:
- app
ports:
- '${EXPRESS_PORT}:${EXPRESS_PORT}'
volumes:
- './docker-data/express/security/RSA:/usr/src/app/security/RSA'
environment:
- 'EXPRESS_PORT=${EXPRESS_PORT}'
- 'BASE_URL=${BASE_URL}'
- 'IPFS_PORT=${IPFS_PORT}'
- 'IPFS_PROTOCOL=${IPFS_PROTOCOL}'
- 'LOTUS_PORT=${LOTUS_PORT}'
- 'LOTUS_PROTOCOL=${LOTUS_PROTOCOL}'
- 'LOTUS_AUTH_TOKEN=${LOTUS_AUTH_TOKEN}'
ipfs:
container_name: ipfs
image: ipfs/go-ipfs:latest
environment:
- IPFS_PROFILE=server
- IPFS_PATH=/ipfsdata
networks:
- app
ports:
- "${IPFS_PORT}:${IPFS_PORT}" # ipfs swarm - expose if needed/wanted
- "${SWARM_PORT}:${SWARM_PORT}" # ipfs api - expose if needed/wanted
- "${GATE_PORT}:${GATE_PORT}" # ipfs gateway - expose if needed/wanted
volumes:
- ./docker-data/ipfs:/ipfsdata
nginx:
container_name: nginx
build: nginx
ports:
- '81:81'
networks:
- app
next:
container_name: next
build:
context: front/next12
ports:
- "${NEXT_PORT}:${NEXT_PORT}"
networks:
- app
environment:
- "EXPRESS_PORT=${EXPRESS_PORT}"
- "BASE_URL=${BASE_URL}"
networks:
app:
driver: bridge