-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (46 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
48 lines (46 loc) · 1.15 KB
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
version: '3'
services:
demo_mysql:
container_name: demo-mysql
image: mysql/mysql-server
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: demo
MYSQL_ROOT_PASSWORD: gitjagamunicon12
MYSQL_ROOT_HOST: '%'
ports:
- 127.0.0.1:3306:3306
volumes:
- ./data:/var/lib/mysql
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
restart: always
networks:
- demo
app:
build:
context: ./server
container_name: demo-app
restart: unless-stopped
environment:
NODE_ENV: production
DATABASE_CLIENT: mysql
DATABASE_HOST: demo_mysql
DATABASE_PORT: 3306
DATABASE_NAME: demo
DATABASE_USERNAME: root
DATABASE_PASSWORD: gitjagamunicon12
APP_KEYS: wqdfda12e34
JWT_SECRET: wqdfda12e35
ADMIN_JWT_SECRET: wqdfda12e36
API_TOKEN_SALT: wqdfda12e37
volumes:
- ./app:/srv/app
ports:
- 127.0.0.1:8000:1337
depends_on:
- demo_mysql
networks:
- demo
networks:
demo: