68 lines
977 B
YAML
68 lines
977 B
YAML
version: '3.2'
|
|
|
|
services:
|
|
db:
|
|
build: ./db
|
|
restart: always
|
|
volumes:
|
|
- db:/var/lib/mysql
|
|
env_file:
|
|
- account.env
|
|
- game.env
|
|
|
|
web:
|
|
build: ./web
|
|
restart: always
|
|
ports:
|
|
- 8080:80
|
|
volumes:
|
|
- hidche:/var/www/html:ro
|
|
- board:/var/www/board:ro
|
|
|
|
app:
|
|
build: ./app
|
|
restart: always
|
|
volumes:
|
|
- hidche:/var/www/html
|
|
env_file:
|
|
- game.env
|
|
depends_on:
|
|
- db
|
|
- web
|
|
|
|
board:
|
|
build: ./board
|
|
restart: always
|
|
volumes:
|
|
- board:/var/www/board
|
|
env_file:
|
|
- game.env
|
|
depends_on:
|
|
- db
|
|
- web
|
|
|
|
install:
|
|
build: ./install
|
|
restart: "no"
|
|
volumes:
|
|
- hidche:/var/www/html
|
|
env_file:
|
|
- account.env
|
|
- game.env
|
|
depends_on:
|
|
- app
|
|
- db
|
|
- web
|
|
|
|
cron:
|
|
build: ./cron
|
|
restart: always
|
|
volumes:
|
|
- hidche:/var/www/html
|
|
depends_on:
|
|
- app
|
|
|
|
volumes:
|
|
db:
|
|
hidche:
|
|
board: |