-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
55 lines (50 loc) · 1.28 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
52
53
54
55
version: '3.8'
volumes:
postgres_data:
driver: local
networks:
pocerp:
services:
# Banco de dados postgresql para desenvolvimento
database_postgres:
image: docker.io/postgres
container_name: 'database_postgres'
volumes:
- postgres_data:/var/lib/postgresql/data
- ./docker_startup/postgresql:/docker-entrypoint-initdb.d
ports:
- "5432:5432"
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
networks:
- pocerp
# Localstack é um mock de serviços da AWS. Simula localmente os serviços, para uso mais simples.
localstack:
container_name: "localstack"
image: localstack/localstack
ports:
- "4566:4566"
- "4571:4571"
- "4576:4576"
environment:
- SERVICES=sqs,sns
- LEGACY_PERSISTENCE=false
- LOCALSTACK_API_KEY=${LOCALSTACK_API_KEY-}
volumes:
- ./docker_startup/localstack:/docker-entrypoint-initaws.d
healthcheck:
test:
- CMD
- bash
- -c
- awslocal dynamodb list-tables
&& awslocal es list-domain-names
&& awslocal s3 ls
&& awslocal sqs list-queues
interval: 5s
timeout: 10s
start_period: 10s
networks:
- pocerp