Files
sprawozdania/docker-compose.yml
deploy d9bf86598b
Build and Deploy Docker / build (push) Failing after 14m19s
Build and Deploy Docker / deploy (push) Has been skipped
add cicd
2026-07-14 08:05:08 +02:00

47 lines
1.2 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.5
restart: on-failure
platform: linux/x86_64
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
networks:
internal:
internal: true
frontend:
external: true
myadmin:
external: true