-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (51 loc) · 973 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
50
51
52
53
54
55
56
57
version: '3'
services:
api:
build:
context: ./backend
dockerfile: api.Dockerfile
ports:
- 8000:8000
volumes:
- ./backend:/usr/src/app
env_file:
- .env
depends_on:
- mongodb
- memcached
job:
build:
context: ./backend
dockerfile: job.Dockerfile
volumes:
- ./backend:/usr/src/app
env_file:
- .env
depends_on:
- mongodb
- memcached
tty: true
mongodb:
image: mongo:4.4.21
volumes:
- ./database/mongod.conf:/etc/mongod.conf
- ./database/data:/data/db
- ./database/configdb:/data/configdb
env_file:
- .env
mongo-express:
image: mongo-express:0.54.0
ports:
- 8081:8081
env_file:
- .env
memcached:
image: memcached:1.6.20
nginx:
image: nginx:1.20
ports:
- 80:80
volumes:
- ./nginx/conf/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- api