forked from mlogclub/bbs-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (39 loc) · 873 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: '3.7'
services:
bbs-go-server:
build:
target: application
context: server
image: mlogclub/bbs-go-server
depends_on:
- start_dependencies
environment:
- APP_ENV
restart: on-failure
volumes:
- './data:/data/'
start_dependencies:
image: dadarek/wait-for-dependencies
depends_on:
- db
command: db:3306
bbs-go-site:
build:
target: application
context: site
image: mlogclub/bbs-go-site
depends_on:
- bbs-go-server
environment:
- APP_ENV
restart: on-failure
db:
image: 'mysql:5.7'
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- '.docker-compose/mysql/db/conf.d:/etc/mysql/conf.d'
- '.docker-compose/mysql/db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d'
volumes:
bbs-go-server: {}
db: {}