-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
82 lines (73 loc) · 1.53 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
74
75
76
77
78
79
80
81
82
networks:
inet:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1
default:
driver: bridge
ipam:
driver: default
services:
# db_dosportal:
# image: postgres
# volumes:
# - ./data/dosportal/db:/var/lib/postgresql/data
# environment:
# - POSTGRES_DB=dosportal
# - POSTGRES_USER=dosportal_user
# - POSTGRES_PASSWORD=dosportal_password
# networks:
# inet:
# ipv4_address: 10.5.0.5
db_dosportal:
image: postgis/postgis
volumes:
- ./data/dosportal/db_pg:/var/lib/postgresql/data
environment:
- POSTGRES_DB=dosportal
- POSTGRES_USER=dosportal_user
- POSTGRES_PASSWORD=dosportal_password
networks:
inet:
ipv4_address: 10.5.0.5
web:
build:
context: .
network: host
# platform: linux/amd64
# command: python manage.py runserver 0.0.0.0:8000
# entrypoint: python3 manage.py runserver 0.0.0.0:8000
volumes:
- .:/DOSPORTAL
ports:
- "8100:8000"
depends_on:
- db_dosportal
- redis
networks:
inet:
ipv4_address: 10.5.0.6
# default:
worker:
build: .
entrypoint: python3 manage.py qcluster
volumes:
- .:/DOSPORTAL
depends_on:
- web
- db_dosportal
- redis
networks:
inet:
ipv4_address: 10.5.0.8
redis:
image: redis
volumes:
- .:/DOSPORTAL
depends_on:
- db_dosportal
networks:
inet:
ipv4_address: 10.5.0.7