-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
116 lines (102 loc) · 2.4 KB
/
docker-compose-dev.yml
File metadata and controls
116 lines (102 loc) · 2.4 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
services:
participa:
extends:
file: participa/docker-compose.yml
service: participa
restart: always
environment:
- DB_HOST=postgres
- DB_USER=${POSTGRES_USER:?error}
- DB_PASSWORD=${POSTGRES_PASSWORD:?error}
- DB_NAME=${POSTGRES_DB:?error}
- DB_PORT=${POSTGRES_PORT:?error}
- DEBUG=${DEBUG:?error}
networks:
- polis-net
labels:
polis_tag: ${TAG:-dev}
entrypoint: /entrypoint_dev.sh
depends_on:
postgres:
condition: service_healthy
server:
env_file:
- ${SERVER_ENV_FILE:-.env}
extends:
file: polis/docker-compose.yml
service: server
depends_on:
postgres:
condition: service_healthy
file-server:
condition: service_started
math:
extends:
file: polis/docker-compose.yml
service: math
environment:
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}/${POSTGRES_DB}
- MATH_ENV=prod
- WEBSERVER_USERNAME=ws-pass
- WEBSERVER_PASS=ws-user
depends_on:
postgres:
condition: service_healthy
postgres:
extends:
file: polis/docker-compose.yml
service: postgres
restart: "no"
ports:
- "54000:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "${POSTGRES_DB}"]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
file-server:
extends:
file: polis/docker-compose.yml
service: file-server
nginx-proxy:
extends:
file: polis/docker-compose.yml
service: nginx-proxy
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- static_volume:/participa/staticfiles
- media_volume:/participa/mediafiles
depends_on:
server:
condition: service_started
maildev:
image: docker.io/maildev/maildev:1.1.1
labels:
polis_tag: ${TAG}
ports:
# User interface
- "1080:1080"
# SMTP port
- "1025:1025"
networks:
polis-net:
volumes:
backups:
labels:
polis_tag: ${TAG:-dev}
postgres:
labels:
polis_tag: ${TAG:-dev}
server-logs:
labels:
polis_tag: ${TAG:-dev}
media_volume:
labels:
polis_tag: ${TAG:-dev}
static_volume:
labels:
polis_tag: ${TAG:-dev}
redis_volume:
labels:
polis_tag: ${TAG:-dev}