-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 1022 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
version: "3"
services:
back_end:
build:
context: .
dockerfile: Dockerfile
env_file: .env
restart: always
depends_on:
- mongo
volumes:
- .:/app/src
expose:
- ${PORT}
environment:
DB_HOST: mongodb://mongo:27017
DB_NAME: Source-code-marking
REDIS_HOST: redis:6379
REDIS_DB: 0
REDIS_PASSWORD: password
mongo:
image: mongo:4.2.1
container_name: mongo
volumes:
- mongo:/data/db
ports:
- 27100:27017
redis:
image: redis:alpine
command: redis-server --requirepass password
volumes:
- ./tmp/redis-data:/var/lib/redis
- ./tmp/redis.conf:/usr/local/etc/redis/redis.conf
ports:
- 6378:6379
environment:
REDIS_REPLICATION_MODE: master
nginx:
build:
context: ./deployments
dockerfile: Dockerfile
volumes:
- ./deployments/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- back_end
ports:
- 4000:4000
volumes:
mongo: