deblan.io-murph/docker-compose.yml

41 lines
658 B
YAML
Raw Normal View History

2023-02-12 21:29:16 +01:00
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: