deblan.io-murph/docker-compose.yml
Simon Vieille 6048742af4
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
add base of docker
2023-02-12 21:29:16 +01:00

41 lines
658 B
YAML

version: '3'
services:
web:
image: nginx:latest
volumes:
- ./:/var/www/app
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
links:
- app
env_file:
- .env.local
networks:
- app
ports:
- "1080:80"
app:
build:
context: .
user: "1000:1000"
networks:
- db
- app
volumes:
- ./:/var/www/app
db:
image: mariadb:10.3
volumes:
- ./appdata/db:/var/lib/mysql
environment:
- MARIADB_ROOT_PASSWORD=root
- MYSQL_DATABASE=app
networks:
- db
networks:
db:
external: true
gateway:
external: true
app: