mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-21 07:46:27 +00:00
33 lines
434 B
YAML
33 lines
434 B
YAML
version: "3.8"
|
|
|
|
networks:
|
|
mynet:
|
|
|
|
services:
|
|
web:
|
|
build: .
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./:/var/www/html:rw
|
|
command: ["./script.sh"]
|
|
depends_on:
|
|
- db
|
|
networks:
|
|
- mynet
|
|
|
|
db:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile-db
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- db_data:/var/lib/mysql
|
|
networks:
|
|
- mynet
|
|
volumes:
|
|
db_data: {}
|