-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
51 lines (48 loc) · 1.12 KB
/
docker-compose.yaml
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
version: "3"
services:
strapi:
build:
context: ./backend
container_name: strapi
environment:
- DATABASE_CLIENT=mysql
- DATABASE_HOST=db
- DATABASE_PORT=3306
- DATABASE_NAME=strapi
- DATABASE_USERNAME=strapi
- DATABASE_PASSWORD=strapi
ports:
- 1337:1337
links:
- db:db
volumes:
- ./backend:/usr/src/app
depends_on:
- db
db:
container_name: mysql
image: mysql:8.4.0
ports:
- 3306:3306
environment:
MYSQL_DATABASE: strapi
MYSQL_USER: strapi
MYSQL_PASSWORD: strapi
MYSQL_ROOT_PASSWORD: strapi
consumer:
build:
context: ./async-server-provisioner
dockerfile: Dockerfile-dev
container_name: consumer
command: ["npm", "run", "watch"]
links:
- db:db
environment:
- MYSQL_HOST=db
- TERRAFORM_PATH=/opt/terraform/02-game-server
- HCLOUD_TOKEN=${HCLOUD_TOKEN}
- CLOUD_GAME_API_TOKEN=${CLOUD_GAME_API_TOKEN}
volumes:
- ~/.aws:/root/.aws
- ./async-server-provisioner:/usr/src/app
- ./infrastructure/terraform:/opt/terraform