-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
62 lines (57 loc) · 1.79 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
62
version: '3.9'
networks:
tasks-network:
driver: bridge
services:
tasks-postgres:
image: postgres:14.4
container_name: tasks-postgres
environment:
- POSTGRES_DB=HiperiumCityTasksDB
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres123
ports:
- "5432:5432"
networks:
- tasks-network
tasks-dynamodb:
image: amazon/dynamodb-local:latest
container_name: tasks-dynamodb
working_dir: "/home/dynamodblocal"
command: "-jar DynamoDBLocal.jar -sharedDb -dbPath ./data"
ports:
- "8000:8000"
volumes:
- ./utils/dynamodb/data:/home/dynamodblocal/data
networks:
- tasks-network
aws-cli:
image: amazon/aws-cli
container_name: aws-cli
environment:
AWS_ACCESS_KEY_ID: "DUMMY"
AWS_SECRET_ACCESS_KEY: "DUMMY"
command: "dynamodb create-table --table-name Devices --attribute-definitions AttributeName=id,AttributeType=S --key-schema AttributeName=id,KeyType=HASH --billing-mode PAY_PER_REQUEST --endpoint-url http://tasks-dynamodb:8000 --region us-west-2"
depends_on:
- tasks-dynamodb
networks:
- tasks-network
tasks-api:
image: aosolorzano/city-tasks-spring-boot-tdd:1.0.0-arm64
container_name: tasks-api
build:
context: .
dockerfile: Dockerfile
environment:
SPRING_PROFILES_ACTIVE: dev
TIME_ZONE_ID: -05:00
HIPERIUM_CITY_TASKS_DB_CLUSTER_SECRET: '{"dbClusterIdentifier":"hiperium-city-tasks-db-cluster","password":"postgres123","dbname":"HiperiumCityTasksDB","engine":"postgres","port":5432,"host":"tasks-postgres","username":"postgres"}'
AWS_ACCESS_KEY_ID: "DUMMY"
AWS_SECRET_ACCESS_KEY: "DUMMY"
depends_on:
- tasks-postgres
- tasks-dynamodb
ports:
- "8080:8080"
networks:
- tasks-network