-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
49 lines (47 loc) · 1018 Bytes
/
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
# docker-compose --env-file ./docker-compose-default.env up
# builds all images with their respective lts tags
services:
mongo:
build: ./database
ports:
- 27017:27017
restart: always
environment:
MONGO_INITDB_DATABASE: ${MONGO_INITDB_DATABASE}
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD}
volumes:
- db-data:/data/db
- mongo-config:/data/configdb
static:
build: ./static
ports:
- 3010:3010
restart: always
services:
build: ./services
ports:
- 3020:3020
restart: always
api:
build: ./api
ports:
- 3030:3030
environment:
- API_TASHKEEL_URL=${API_TASHKEEL_URL}
- API_MONGO_DB_URL=${API_MONGO_DB_URL}
restart: always
depends_on:
- mongo
- static
- tashkeel
web:
build: ./web
ports:
- 3040:3040
restart: always
depends_on:
- api
volumes:
db-data:
mongo-config: