-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 1.33 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
version: '3.6'
services:
db:
image: postgres:10-alpine
restart: always
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
expose:
- 5432
volumes:
- ./db/postgre:/var/lib/postgresql/data
web:
image: docker.pkg.github.com/nsiregar/pegelinux/pegelinux:latest
command: gunicorn -b 0.0.0.0:5000 --workers 4 --timeout=60 --thread 4 app:app
expose:
- 5000
environment:
- ENV=${ENV}
- SECRET_KEY=${SECRET_KEY}
- APP_CONFIG=${APP_CONFIG}
- GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID}
- GITHUB_SECRET_ID=${GITHUB_SECRET_ID}
- MAILGUN_API_KEY=${MAILGUN_API_KEY}
- MAILGUN_DOMAIN=${MAILGUN_DOMAIN}
- MAILGUN_USER=${MAILGUN_USER}
- DATABASE_URL=${DATABASE_URL}
- SENTRY_DSN=${SENTRY_DSN}
- SENTRY_ID=${SENTRY_ID}
depends_on:
- db
caddy:
image: abiosoft/caddy
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./caddy/Caddyfile:/etc/Caddyfile
- /var/log/pegelinux/pegelinux.access.log:/var/log/pegelinux/pegelinux.access.log
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/config.json
command: --interval 30 --cleanup