-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-docker-compose.yml
47 lines (45 loc) · 1.27 KB
/
example-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
version: "2.2"
services:
pyro_autohelp_db:
image: postgres:12.9
container_name: "pyro_autohelp_db"
restart: always
ports:
- "5432:5432"
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_DB: ...
POSTGRES_USER: ...
POSTGRES_PASSWORD: ...
volumes:
- .db:/var/lib/postgresql/data
pyro_autohelp_web:
image: docker.pkg.github.com/menudocs/pyro-autohelp-viewer/pyro-autohelp-viewer
container_name: "pyro_autohelp_web"
restart: always
depends_on:
- pyro_autohelp_db
ports:
- "8000:8000"
labels:
traefik.enable: "true"
traefik.http.routers.pyro_auto_help.rule: "Host(`pyro.koldfusion.xyz`)"
traefik.http.routers.pyro_auto_help.entrypoints: "websecure"
traefik.http.routers.pyro_auto_help.tls.certresolver: "leresolver"
traefik.http.services.pyro_auto_help.loadbalancer.server.port: "8000"
cpus: 3
mem_limit: 2g
mem_reservation: 512m
environment:
SECRET_KEY: ...
SERVING_DOMAIN: "pyro.koldfusion.xyz"
POSTGRES_NAME: "pyro_autohelp_db"
POSTGRES_HOST: ...
POSTGRES_USER: ...
POSTGRES_PASSWORD: ...
FORCE_POSTGRES: 1
API_KEY: ...
networks:
default:
name: dockerized-portainer_default
external: true