-
Notifications
You must be signed in to change notification settings - Fork 611
/
docker-compose.yml
43 lines (40 loc) · 986 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"
networks:
gd-network:
driver: bridge
services:
server:
container_name: server
build:
context: ./
dockerfile: ./server/Dockerfile
depends_on:
- db
networks:
- gd-network
expose:
- "${GD_API_SERVER_PORT}"
ports:
- "${GD_API_SERVER_PORT}:${GD_API_SERVER_PORT}"
restart: on-failure
volumes:
- .:/home/app/generatedata
- /home/app/generatedata/node_modules
db:
container_name: db
image: mariadb:10.5.8
command: --default-authentication-plugin=mysql_native_password
restart: always
expose:
- "${GD_DB_PORT}"
ports:
- "${GD_DB_PORT}:${GD_DB_PORT}"
networks:
- gd-network
environment:
MYSQL_ROOT_PASSWORD: ${GD_MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${GD_DB_NAME}
MYSQL_ALLOW_EMPTY_PASSWORD: ok
volumes:
- ./server/database/_dbStructure.sql:/docker-entrypoint-initdb.d/setup.sql
- ./data/db:/var/lib/mysql