-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.19 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
version: '3.4'
x-logging:
&json-logging
driver: json-file
options:
max-size: "10m"
max-file: "3"
services:
database:
build:
context: ./database
dockerfile: Dockerfile
image: database.server
container_name: database-server
restart: always
env_file:
- ./db.env
environment:
TZ: "Asia/Tokyo"
MYSQL_ROOT_PASSWORD: "rootpassword"
volumes:
- database:/var/lib/mysql
logging: *json-logging
expose:
- 3306
express:
build:
context: ./express
dockerfile: Dockerfile
image: express.server
working_dir: /home/node/app
restart: always
container_name: express-server
env_file:
- ./db.env
environment:
- DEBUG=true
- TZ=+09:00
- NODE_UID=1000
- NODE_GID=1000
- SERVER_PORT=11500
ports:
- 11500:11500
volumes:
- ./express/src/:/home/node/app/src
depends_on:
- database
logging: *json-logging
volumes:
database: