30 lines
444 B
YAML
30 lines
444 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
|
||
|
|
||
|
volumes:
|
||
|
db:
|
||
|
|
||
|
|
||
|
|