adds development versions
This commit is contained in:
parent
790407f552
commit
36f977d0b3
13 changed files with 223 additions and 483 deletions
101
development/docker-compose.development.yml
Normal file
101
development/docker-compose.development.yml
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
version: "3.8"
|
||||
|
||||
services:
|
||||
pfdb:
|
||||
image: bianjp/mariadb-alpine:latest
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: $MYSQL_PASSWORD
|
||||
container_name: "$CONTAINER_NAME-db"
|
||||
networks:
|
||||
pf:
|
||||
aliases:
|
||||
- "${CONTAINER_NAME}db"
|
||||
volumes:
|
||||
- db_data:/var/lib/mysql
|
||||
- $path/pathfinder/export/sql/eve_universe.sql.zip:/eve_universe.sql.zip
|
||||
restart: always
|
||||
pf-redis:
|
||||
image: redis:6.2.5-alpine3.14
|
||||
container_name: "$CONTAINER_NAME-redis"
|
||||
command: ["redis-server", "--appendonly", "yes"]
|
||||
hostname: redis
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
networks:
|
||||
pf:
|
||||
aliases:
|
||||
- "$CONTAINER_NAME-redis"
|
||||
logging:
|
||||
driver: none
|
||||
restart: always
|
||||
pf-socket:
|
||||
image: composer:composer@sha256:d374b2e1f715621e9d9929575d6b35b11cf4a6dc237d4a08f2e6d1611f534675
|
||||
container_name: "$CONTAINER_NAME-socket"
|
||||
command: ["sh","-c","composer install && php cmd.php --tcpHost 0.0.0.0"]
|
||||
hostname: socket
|
||||
volumes:
|
||||
- ${path}/websocket:/app
|
||||
networks:
|
||||
pf:
|
||||
aliases:
|
||||
- "$CONTAINER_NAME-socket"
|
||||
restart: always
|
||||
pf:
|
||||
container_name: ${CONTAINER_NAME}
|
||||
hostname: "pathfinder"
|
||||
build: '.'
|
||||
env_file:
|
||||
- .env
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=web"
|
||||
- "traefik.http.services.pf.loadbalancer.server.port=80"
|
||||
- "traefik.http.routers.pf.rule=Host(`${DOMAIN}`)"
|
||||
- "traefik.http.routers.pf.entrypoints=web"
|
||||
- "traefik.http.routers.pf-secure.rule=Host(`${DOMAIN}`)"
|
||||
- "traefik.http.routers.pf-secure.entrypoints=websecure"
|
||||
- "traefik.http.routers.pf-secure.tls=true"
|
||||
- "traefik.http.middlewares.redirecthttps.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.pf.middlewares=redirecthttps"
|
||||
networks:
|
||||
- pf
|
||||
- web
|
||||
healthcheck:
|
||||
disable: true
|
||||
volumes:
|
||||
- ${path}/config/pathfinder/config.ini:/var/www/html/pathfinder/app/templateConfig.ini
|
||||
- ${path}/config/pathfinder/pathfinder.ini:/var/www/html/pathfinder/app/pathfinder.ini
|
||||
- ${path}/config/pathfinder/plugin.ini:/var/www/html/pathfinder/app/plugin.ini
|
||||
depends_on:
|
||||
- pfdb
|
||||
- pf-redis
|
||||
- pf-socket
|
||||
restart: always
|
||||
traefik:
|
||||
image: "traefik:v2.3"
|
||||
container_name: "traefik"
|
||||
command:
|
||||
- "--log.level=ERROR"
|
||||
- "--api.insecure=true"
|
||||
- "--providers.docker=true"
|
||||
- "--providers.docker.exposedbydefault=false"
|
||||
- "--entrypoints.web.address=:80"
|
||||
- "--entrypoints.websecure.address=:443"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||
networks:
|
||||
- web
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
data:
|
||||
db_data:
|
||||
redis_data:
|
||||
networks:
|
||||
pf:
|
||||
web:
|
||||
external: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue