-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
executable file
·69 lines (67 loc) · 1.67 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: "3"
services:
bbs_front:
build:
context: ./Front
dockerfile: Dockerfile
bbs:
build: ./
env_file:
- .env
environment:
- SECRET
- WXMSGTOKEN
- WXMSGAESKEY
- APPID
- WXSECRET
- AGENTID
- PRISMA_ENDPOINT=http://prisma:4466/
- NODE_ENV=production
- MODE=production
- BACKEND_URL=/api/
- DOCKER_COMPOSE=true
# ⚠️: The value of the these variables in the container
# are taken from the value for the same variables in the
# shell in which docker-compose is run.
ports:
- 7010:7010 # hzy's birthday 0701
command:
- run
- init
volumes:
- bbs:/var/bbs
restart: always
depends_on:
- prisma
- redis
prisma:
image: prismagraphql/prisma:1.24
environment:
PRISMA_CONFIG: |-
port: 4466
databases:
default:
connector: mysql
host: mysql
port: 3306
user: root
password: P@ssw0rd
migrations: true
stdin_open: true
restart: always
tty: true
mysql:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: P@ssw0rd
stdin_open: true
tty: true
volumes:
- mysql:/var/lib/mysql
redis:
image: redis
stdin_open: true
tty: true
volumes:
mysql:
bbs: