oef/compose/docker-compose_outside_docker.yml
2019-11-04 15:00:46 +01:00

31 lines
479 B
YAML

version: "3.3"
services:
app:
build: ../
ports:
- 3000:3000
environment:
- DB_HOST=db
- DB_PORT=3306
volumes:
- /etc/localtime:/etc/localtime:ro
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- db:/var/lib/mysql
- ./sql:/docker-entrypoint-initdb.d
env_file:
- db.env
ports:
- 3307:3306
volumes:
db: