-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 1.04 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
version: "3.7"
services:
# app:
# image: node:12-alpine
# command: sh -c "yarn install && yarn dev"
# ports:
# - 3000:3000
# working_dir: /app
# volumes:
# - ./:/app
# environment:
# MYSQL_HOST: mysql
# MYSQL_USER: root
# MYSQL_PASSWORD: secret
# MYSQL_DB: todos
gamearena-api:
build: ./backend
ports:
- "8080:8080"
environment:
MYSQL_HOST: gamearena-mysql
MYSQL_USERNAME: gamearena
MYSQL_PASSWORD: secret
MYSQL_DATABASE: coreapp
depends_on:
- gamearena-mysql
# links:
# - gamearena-mysql:
gamearena-mysql:
image: mysql/mysql-server:8.0
volumes:
- "mysql-data:/var/lib/mysql"
- "./backend/src/test/resources/db/coreapp/schema.sql:/docker-entrypoint-initdb.d/1.sql"
- "./backend/src/test/resources/db/coreapp/data.sql:/docker-entrypoint-initdb.d/2.sql"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: coreapp
MYSQL_USER: gamearena
MYSQL_PASSWORD: secret
volumes:
mysql-data: