Cloudlog/docker-compose.yml

33 lines
434 B
YAML
Raw Permalink Normal View History

2024-04-05 20:36:16 +00:00
version: "3.8"
2024-04-19 15:08:58 +00:00
networks:
mynet:
2024-04-05 20:36:16 +00:00
services:
web:
build: .
env_file:
- .env
ports:
- "80:80"
volumes:
- ./:/var/www/html:rw
command: ["./script.sh"]
depends_on:
- db
2024-04-19 15:08:58 +00:00
networks:
- mynet
2024-04-05 20:36:16 +00:00
db:
build:
context: .
dockerfile: Dockerfile-db
env_file:
- .env
volumes:
- db_data:/var/lib/mysql
2024-04-19 15:08:58 +00:00
networks:
- mynet
2024-04-05 20:36:16 +00:00
volumes:
db_data: {}