-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
50 lines (46 loc) · 1.22 KB
/
docker-compose.yaml
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
services:
backend:
image: ghcr.io/pecoret/pecoret-server:latest
environment:
DB_NAME: pecoret
DB_USER: pecoret
DB_PASSWORD: dontusethispassword
DJANGO_SUPERUSER_USERNAME: admin
DJANGO_SUPERUSER_PASSWORD: dontusethispasswordtoo
DJANGO_SUPERUSER_EMAIL: [email protected]
ALLOWED_HOSTS: localhost
volumes:
- ./volumes/server/conf:/opt/pecoret/conf
ports:
- "127.0.0.1:80:80"
depends_on:
db:
condition: service_healthy
db:
image: postgres:alpine
environment:
POSTGRES_PASSWORD: dontusethispassword
POSTGRES_DB: pecoret
POSTGRES_USER: pecoret
volumes:
- ./volumes/db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 60s
retries: 5
start_period: 10s
worker:
image: ghcr.io/pecoret/pecoret-server:latest
entrypoint: python3 manage.py qcluster
environment:
DB_NAME: pecoret
DB_USER: pecoret
DB_PASSWORD: dontusethispassword
volumes:
- ./volumes/server/conf:/opt/pecoret/conf
depends_on:
db:
condition: service_healthy
volumes:
server-static: