This repository has been archived by the owner on Oct 12, 2024. It is now read-only.
forked from tstsrv-de/rpg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (54 loc) · 1.58 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
52
53
54
55
56
57
58
59
version: "3.7"
x-logging: &loki-logging
driver: json-file
options:
tag: "{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}"
services:
rpgdb:
container_name: rpgdb
hostname: rpgdb
restart: always
image: postgres:14.1-bullseye
volumes:
- ./data/db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${ENV_POSTGRES_DB}
- POSTGRES_USER=${ENV_POSTGRES_USER}
- POSTGRES_PASSWORD=${ENV_POSTGRES_PASSWORD}
rpgapp:
container_name: rpgapp
hostname: rpgapp
restart: always
build:
context: ./rpg
dockerfile: Dockerfile
args:
DJANGO_SUPERUSER_PASSWORD: ${ENV_DRFJWT_DJANGO_SUPERUSER_PASSWORD}
DJANGO_SUPERUSER_USERNAME: ${ENV_DRFJWT_DJANGO_SUPERUSER_USERNAME}
DJANGO_SUPERUSER_EMAIL: ${ENV_DRFJWT_DJANGO_SUPERUSER_EMAIL}
env_file:
- ./.env
command: bash -c '/srv/rpg/start_rpg_prod.sh'
volumes:
- .:/code
- ./:/usr/src/rpg
depends_on:
- rpgdb
ports:
- 8642:8642
labels:
- traefik.http.routers.rpg.rule=Host(`rpg.${ENV_RPG_DOCKER_DOMAIN}`)
- traefik.http.routers.rpg.service=rpg
# - traefik.http.routers.rpg.middlewares=auth
- traefik.http.services.rpg.loadbalancer.server.port=8642
- traefik.http.routers.rpg.entrypoints=https
- traefik.http.routers.rpg.tls=true
- traefik.http.routers.rpg.tls.certresolver=${ENV_RPG_DOCKER_CERT_RESOLVER}
networks:
- internalnetwork
restart: always
logging: *loki-logging
networks:
internalnetwork:
name: internalnetwork
external: true