forked from KryptedGaming/pathfinder-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (30 loc) · 887 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
33 lines (30 loc) · 887 Bytes
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
services:
db:
image: mysql:5.7
volumes:
- database:/var/lib/mysql
- ./config/start.sql:/docker-entrypoint-initdb.d/start.sql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_USER: ${MYSQL_USER}
pathfinder:
image: kryptedgaming/pathfinder:latest
env_file: .env
volumes:
- ./config/php.ini:/etc/php/7.2/fpm/php.ini
networks:
- default
- traefik-public
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-public"
- "traefik.http.routers.pathfinder.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.pathfinder.entrypoints=websecure"
- "traefik.http.routers.pathfinder.tls.certresolver=letsencrypt"
- "traefik.http.services.pathfinder.loadbalancer.server.port=80"
volumes:
database: {}
networks:
traefik-public:
external: true