This repository was archived by the owner on Feb 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
132 lines (123 loc) · 2.68 KB
/
docker-compose.yml
File metadata and controls
132 lines (123 loc) · 2.68 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: "3"
services:
dashboard:
image: atb00ker/ready-to-run:openwisp-dashboard
build:
context: build
dockerfile: openwisp_dashboard/Dockerfile
args:
DASHBOARD_APP_PORT: $DASHBOARD_APP_PORT
deploy:
replicas: 1
environment:
- DB_ENGINE=$DB_GIS_ENGINE
env_file:
- .env
volumes:
- openwisp_static:/opt/openwisp/static
- openwisp_media:/opt/openwisp/media
depends_on:
- postgres
- redis
controller:
image: atb00ker/ready-to-run:openwisp-controller
build:
context: build
dockerfile: openwisp_controller/Dockerfile
args:
CONTROLLER_APP_PORT: $CONTROLLER_APP_PORT
deploy:
replicas: 1
env_file:
- .env
environment:
- DB_ENGINE=$DB_GIS_ENGINE
volumes:
- openwisp_media:/opt/openwisp/media
depends_on:
- postgres
- redis
- dashboard
radius:
image: atb00ker/ready-to-run:openwisp-radius
build:
context: build
dockerfile: openwisp_radius/Dockerfile
args:
RADIUS_APP_PORT: $RADIUS_APP_PORT
deploy:
replicas: 1
env_file:
- .env
depends_on:
- postgres
- dashboard
topology:
image: atb00ker/ready-to-run:openwisp-topology
build:
context: build
dockerfile: openwisp_topology/Dockerfile
args:
TOPOLOGY_APP_PORT: $TOPOLOGY_APP_PORT
deploy:
replicas: 1
env_file:
- .env
depends_on:
- postgres
- dashboard
orchestration:
image: atb00ker/ready-to-run:openwisp-orchestration
build:
context: build
dockerfile: openwisp_orchestration/Dockerfile
env_file:
- .env
volumes:
- openwisp_certs:/etc/letsencrypt
nginx:
image: atb00ker/ready-to-run:openwisp-nginx
build:
context: build
dockerfile: nginx/Dockerfile
deploy:
replicas: 1
env_file:
- .env
volumes:
- openwisp_certs:/etc/letsencrypt:ro
- openwisp_static:/opt/openwisp/static:ro
- openwisp_media:/opt/openwisp/media:ro
ports:
- "80:80"
- "443:443"
depends_on:
- dashboard
- controller
- radius
- topology
postgres:
image: mdillon/postgis:10-alpine
deploy:
replicas: 1
environment:
- POSTGRES_DB=$DB_NAME
- POSTGRES_USER=$DB_USER
- POSTGRES_PASSWORD=$DB_PASS
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
depends_on:
- orchestration
redis:
image: redis:alpine
deploy:
replicas: 1
ports:
- "6379:6379"
volumes:
postgres_data: {}
openwisp_certs: {}
openwisp_media: {}
openwisp_static: {}