-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
64 lines (62 loc) · 1.55 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
55
56
57
58
59
60
61
62
63
64
version: '3.4'
x-backend: &default-backend
image: ghcr.io/berlin-vegan/berlin-vegan-data/be:latest
restart: always
depends_on:
- postgres
env_file:
- .env
services:
backend:
<<: *default-backend
volumes:
- dstatic:/app/static
- dmedia:/app/media
celery-worker:
<<: *default-backend
depends_on:
- postgres
- redis
- backend
command: celery -A bvdata worker
celery-beat:
<<: *default-backend
depends_on:
- postgres
- redis
- celery-worker
- backend
command: celery -A bvdata beat
postgres:
image: postgres:14.2-alpine
restart: always
volumes:
- pgdata:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=${DATABASE_NAME}
- POSTGRES_USER=${DATABASE_USER}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
redis:
image: redis:alpine
restart: always
frontend:
image: ghcr.io/berlin-vegan/berlin-vegan-data/fe:latest
restart: always
depends_on:
- backend
entrypoint:
image: nginx:stable-alpine
restart: always
ports:
- "8000:8080"
volumes:
- ./nginx-proxy.conf:/etc/nginx/conf.d/default.conf:ro
- dstatic:/var/www/dstatic
- dmedia:/var/www/dmedia
depends_on:
- backend
- frontend
volumes:
pgdata:
dstatic:
dmedia: