forked from mlogclub/bbs-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (37 loc) · 925 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
version: '3.7'
services:
bbs-go-mysql:
image: 'mysql:5.7'
container_name: bbs-go-mysql
environment:
MYSQL_ROOT_PASSWORD: '123456'
# MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
ports:
- 3306:3306
volumes:
- '.docker-compose/mysql/db/conf.d:/etc/mysql/conf.d'
- '.docker-compose/mysql/db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d'
bbs-go-server:
image: mlogclub/bbs-go-server
container_name: bbs-go-server
ports:
- 8082:8082
depends_on:
- bbs-go-mysql
build:
target: application
context: server
restart: on-failure
volumes:
- './data:/data/'
bbs-go-site:
image: mlogclub/bbs-go-site
container_name: bbs-go-site
ports:
- 3000:3000
build:
target: application
context: site
depends_on:
- bbs-go-server
restart: on-failure