forked from costasiella/costasiella
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-build.yml
64 lines (63 loc) · 1.76 KB
/
docker-compose-build.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'
services:
backend:
image: simplycode/costasiella_backend:${COSTASIELLA_VERSION}
restart: always
env_file:
- costasiella.env
build:
context: .
dockerfile: ./docker/backend/Dockerfile
volumes:
- /opt/docker/mounts/costasiella/sockets:/opt/sockets
- /opt/docker/mounts/costasiella/media:/opt/media
- /opt/docker/mounts/costasiella/media_protected:/opt/media_protected
- /opt/docker/mounts/costasiella/static:/opt/static
- /opt/docker/mounts/costasiella/logs:/opt/app/logs
- /opt/docker/mounts/costasiella/settings:/opt/app/app/settings
depends_on:
- redis
- vault
redis:
restart: always
image: redis:alpine
vault:
restart: always
image: vault
command:
- "server"
volumes:
- /opt/docker/mounts/costasiella/vault_config:/vault/config
ports:
- "127.0.0.1:8200:8200"
celery_worker:
image: simplycode/costasiella_celery_worker:${COSTASIELLA_VERSION}
restart: always
env_file:
- costasiella.env
build:
context: .
dockerfile: ./docker/celery_worker/Dockerfile
volumes:
- /opt/docker/mounts/costasiella/logs:/opt/app/app/logs
- /opt/docker/mounts/costasiella/settings:/opt/app/app/settings
depends_on:
- redis
- vault
- backend
celery_beat:
image: simplycode/costasiella_celery_beat:${COSTASIELLA_VERSION}
restart: always
env_file:
- costasiella.env
build:
context: .
dockerfile: ./docker/celery_beat/Dockerfile
volumes:
- /opt/docker/mounts/costasiella/logs:/opt/app/app/logs
- /opt/docker/mounts/costasiella/settings:/opt/app/app/settings
depends_on:
- redis
- vault
- celery_worker
- backend