initial commit
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
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.1.4
|
||||
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
|
||||
Reference in New Issue
Block a user