-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (45 loc) · 968 Bytes
/
docker-compose.yaml
File metadata and controls
48 lines (45 loc) · 968 Bytes
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.8'
services:
web:
container_name: typing-game-container
tty: true
stdin_open: true
environment:
REACT_APP_API_HOST: http://localhost
REACT_APP_API_PORT: 4567
build:
context: ./web
ports:
- "3000:3000"
depends_on:
- api
api:
container_name: typing-api-container
tty: true
stdin_open: true
environment:
HOST: db
MYSQL_USER: game
MYSQL_PASSWORD: game
MYSQL_DATABASE: game
ports:
- "4567:4567"
build:
context: ./api
restart: always
depends_on:
- db
db:
container_name: typing-mysql-container
image: mysql:8.0.17
environment:
MYSQL_ROOT_PASSWORD: game
MYSQL_USER: game
MYSQL_PASSWORD: game
MYSQL_DATABASE: game
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
volumes:
- ./api/db:/docker-entrypoint-initdb.d