-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (54 loc) · 1.19 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
version: "3"
services:
postgres:
container_name: budget-db
image: postgres
restart: unless-stopped
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: thisisasecurepassword
POSTGRES_USER: budget_user
POSTGRES_DB: budget_dev
volumes:
- ./db/postgres_data:/var/lib/postgres
networks:
- budget
budget-api:
container_name: budget-api
build: .
volumes:
- type: bind
source: ./config
target: /usr/local/app/config/
- type: bind
source: $HOME/.aws/credentials
target: /budget/.aws/credentials
depends_on:
- postgres
- localstack
ports:
- 5000:5000
networks:
- budget
localstack:
image: localstack/localstack
container_name: localstack
ports:
- 4566-4599:4566-4599
- 8081:8081
environment:
- SERVICES=kinesis,s3,sqs
- DEFAULT_REGION=us-east-1
- PORT_WEB_UI=9000
- START_WEB=1
- DEBUG=1
- DATA_DIR=/tmp/localstack/data
networks:
- budget
volumes:
- /tmp/localstack:/tmp/localstack
- /tmp/localstack/run/docker.sock:/var/run/docker.sock
networks:
budget:
driver: bridge