-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
61 lines (58 loc) · 1.7 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: '2.4'
services:
localstack:
image: localstack/localstack:2.1.0
ports:
- 4566:4566
environment:
- AWS_DEFAULT_REGION=eu-west-1
healthcheck:
test: "curl -f -s http://localhost:4566/_localstack/health"
volumes:
- ../../shared/dynamodb/create-tables.sh:/etc/localstack/init/ready.d/1.sh
- ./write-data.sh:/etc/localstack/init/ready.d/2.sh
- ./data.json:/data.json
logging:
driver: none
server:
build:
context: ../../../../
dockerfile: ./build/package/server/Dockerfile
depends_on:
localstack:
condition: service_healthy
healthcheck:
test: wget -c -q localhost:9186/health
ports:
- 9186:9186
volumes:
- ../../../../internal:/go/src/github.com/Haraj-backend/hex-monscape/internal
- ../../../../cmd/server:/go/src/github.com/Haraj-backend/hex-monscape/cmd/server
- ../../../../.output/go/pkg:/go/pkg
environment:
- STORAGE_TYPE=dynamodb
- STORAGE_DYNAMODB_LOCALSTACK_ENDPOINT=http://localstack:4566
- STORAGE_DYNAMODB_BATTLE_TABLE_NAME=battle
- STORAGE_DYNAMODB_GAME_TABLE_NAME=game
- STORAGE_DYNAMODB_MONSTER_TABLE_NAME=monster
- AWS_ACCESS_KEY_ID=awslocal
- AWS_REGION=eu-west-1
- AWS_SECRET_ACCESS_KEY=awslocal
client:
build:
context: ../../../../
dockerfile: ./build/package/client/Dockerfile
depends_on:
localstack:
condition: service_healthy
server:
condition: service_healthy
volumes:
- ../../../../cmd/client:/client
- exclude:/client/node_modules
ports:
- 8161:8161
environment:
- VITE_MONSCAPE_URL=http://localhost:9186
volumes:
exclude: