Files
sprawozdania/docker-compose.yml
T
2024-09-25 16:55:03 +02:00

56 lines
1.4 KiB
YAML

version: '3'
services:
mysql:
image: mysql:8.0
restart: unless-stopped
command: --default-authentication-plugin=mysql_native_password --sql_mode="NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"
environment:
- MYSQL_ROOT_PASSWORD=IPnWH5LpE977A7cmD6j2dM
- TZ=Europe/Warsaw
volumes:
- ./storage/mysql:/var/lib/mysql
networks:
- internal
- myadmin
www:
image: registry.docker.rhost.ovh/sprawozdania:0.2.2
restart: on-failure
build:
context: .
dockerfile: services/www/Dockerfile
networks:
- frontend
- internal
volumes:
- ./project:/var/www/html
labels:
traefik.enable: 'true'
traefik.http.routers.sprawozdania.entrypoints: web
traefik.http.routers.sprawozdania.rule: Host(`sprawozdania.docker`)
traefik.http.services.sprawozdania.loadbalancer.server.port: 80
traefik.http.routers.sprawozdania.service: sprawozdania
redis:
image: redis:6-alpine
restart: on-failure
networks:
- internal
volumes:
- ./storage/redis:/data
# wait_for_it:
# build:
# context: .
# dockerfile: services/wait_for_it/Dockerfile
# networks:
# - internal
# depends_on:
# - database
# command: sh -c "/wait -t 30 database:5432 -- echo 123;"
networks:
internal:
internal: true
frontend:
external: true
myadmin:
external: true