36 lines
548 B
YAML
36 lines
548 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
|
|
|
|
smtp:
|
|
image: digiplant/fake-smtp
|
|
ports:
|
|
- "1025:25"
|
|
|
|
volumes:
|
|
db:
|
|
|
|
|
|
|