-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (48 loc) · 937 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
version: '3.8'
services:
frontend:
container_name: frontend
build: Frontend
env_file:
- Frontend/.env
ports:
- '3000:3000'
redis:
container_name: redis
image: redis:6.2-alpine
restart: on-failure
expose:
- '6379'
volumes:
- redis_data:/data
celery-worker:
container_name: celery-worker
build: Background
env_file:
- Background/.env
depends_on:
- redis
postgres:
container_name: postgres
build:
context: .
dockerfile: Dockerfile # it is built from the file as we need to install extra extension
restart: on-failure
env_file:
- .env
expose:
- '5432'
volumes:
- postgres_data:/var/lib/postgresql/data
api:
container_name: api
build: API
env_file:
- API/.env
ports:
- '5000:5000'
depends_on:
- postgres
volumes:
redis_data:
postgres_data: