-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (45 loc) · 1.04 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
version: '3'
services:
rq-server-interview:
container_name: rq-server-interview
image: "redis:alpine"
ports:
- "6379:6379"
environment:
- REDIS_REPLICATION_MODE=master
api-interview:
build: ./api
command: sh run.sh
image: master-image
volumes:
- ./api/:/app/
expose:
- 5000
env_file:
- ./.env
depends_on:
- db
db:
image: postgres:12-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=not_a_user
- POSTGRES_PASSWORD=not_a_password
- POSTGRES_DB=interview
# WORKERS
worker:
image: master-image
env_file:
- ./.env
depends_on:
- rq-server-interview
command: python3 worker.py
nginx:
build: ./nginx
ports:
- 1337:80
depends_on:
- api-interview
volumes:
postgres_data: