/
docker-compose.yml
73 lines (63 loc) · 1.35 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
65
66
67
68
69
70
71
72
73
version: '3.9'
services:
redis:
container_name: server
image: redis:latest
networks:
- intranet_net
expose:
- "6379"
postgres:
container_name: database
image: postgres:latest
networks:
- intranet_net
expose:
- "5432"
environment:
- POSTGRES_DB=ion
- POSTGRES_USER=ion
- POSTGRES_PASSWORD=pwd
volumes:
- pgdata:/var/lib/postgresql/data
application:
container_name: intranet
image: application
networks:
- intranet_net
entrypoint: ["/bin/sh", "-c" , "chmod +x config/docker/entrypoint.sh && config/docker/entrypoint.sh"]
ports:
- 8080:8080
build:
context: ../../
dockerfile: ./config/docker/Dockerfile
volumes:
- ../../:/ion:z
depends_on:
- redis
- postgres
celery:
container_name: celery
image: application
networks:
- intranet_net
command: pipenv run celery --app intranet worker -l info --without-gossip --without-mingle --without-heartbeat -Ofair
depends_on:
- application
volumes:
- ../../:/ion:z
celerybeat:
container_name: celerybeat
image: application
networks:
- intranet_net
command: pipenv run celery --app intranet beat -l info
depends_on:
- application
volumes:
- ../../:/ion:z
networks:
intranet_net:
driver: bridge
volumes:
pgdata: