-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 1.06 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
52
53
54
version: '3'
services:
postgres:
image: postgres:12
ports:
- '5432:5432'
env_file:
- ./envs/dev.env
volumes:
- postgres:/var/lib/postgresql/data
backend:
image: registry.gitlab.propulsion-home.ch/propulsion/projects/clients/lepi:latest
restart: always
env_file:
- ./envs/dev.env
command: "tail -f /dev/null"
ports:
- '8000:8000'
depends_on:
- postgres
volumes:
- ./backend:/backend
- media-files:/media-files
- static-files:/static-files
tty: true
redis:
image: redis:latest
restart: always
volumes:
- redis_data:/data
celery:
image: registry.gitlab.propulsion-home.ch/propulsion/projects/clients/lepi:latest
restart: always
env_file:
- ./envs/dev.env
command: 'celery -A app worker -l info'
volumes:
- ./backend:/backend
- media-files:/media-files
- static-files:/static-files
depends_on:
- postgres
- backend
- redis
volumes:
postgres:
redis_data:
media-files:
static-files: