You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
372 B

version: "3.8"
services:
db:
build: ./db
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: test
restart: always
web:
build: ./web
environment:
MYSQL_DATABASE: test
MYSQL_USER: root
MYSQL_PASSWORD: password
MYSQL_HOST: db
ports:
- "5000:5000"
depends_on:
- db
restart: on-failure