-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
60 lines (58 loc) · 1.28 KB
/
docker-compose.yml
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
59
60
version: '3.8'
networks:
polkadot-wizard:
name: polkadot-wizard
services:
web:
container_name: ${CONTAINER_BASE}_web
build:
context: .
dockerfile: .docker/web/dev.Dockerfile
target: runner
ports:
- ${WEB_EXTERNAL_PORT}:3000
environment:
- NODE_ENV=${WEB_ENVIRONMENT}
networks:
- polkadot-wizard
depends_on:
- compiler-be
command:
sh -c 'if [ "$WEB_ENVIRONMENT" = "development" ]; then
yarn dev;
else
yarn start;
fi'
compiler-be:
container_name: ${CONTAINER_BASE}_backend
build:
context: ./ink-compiler-be
dockerfile: ./Dockerfile
ports:
- ${BACKEND_EXTERNAL_PORT}:8000
environment:
- MONGOURI=mongodb://mongodb:27017
networks:
- polkadot-wizard
depends_on:
- mongodb
mongodb:
ports:
- ${DB_EXTERNAL_PORT}:27017
container_name: ${CONTAINER_BASE}_mongodb
restart: always
logging:
options:
max-size: 1g
image: mongo:5.0.16
networks:
- polkadot-wizard
doc:
container_name: ${CONTAINER_BASE}_doc
build:
context: ./cw_docs
dockerfile: ./Dockerfile
ports:
- ${DOC_EXTERNAL_PORT}:3000
networks:
- polkadot-wizard