34 lines
542 B
YAML
34 lines
542 B
YAML
|
version: '3'
|
||
|
|
||
|
volumes:
|
||
|
web-gpt:
|
||
|
db:
|
||
|
|
||
|
|
||
|
services:
|
||
|
web-gpt:
|
||
|
image: web-gpt
|
||
|
restart: always
|
||
|
depends_on:
|
||
|
- db
|
||
|
build:
|
||
|
context: .
|
||
|
|
||
|
volumes:
|
||
|
- ./instance:/web-gpt/instance
|
||
|
|
||
|
ports:
|
||
|
- 5000:5000
|
||
|
|
||
|
db:
|
||
|
image: mariadb
|
||
|
restart: always
|
||
|
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
|
||
|
volumes:
|
||
|
- ./db:/var/lib/mysql
|
||
|
environment:
|
||
|
- MYSQL_ROOT_PASSWORD=
|
||
|
- MYSQL_PASSWORD=
|
||
|
- MYSQL_DATABASE=web-gpt
|
||
|
- MYSQL_USER=web-gpt
|