-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 1.21 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
name: 'tiamat'
services:
db:
container_name: '${COMPOSE_PROJECT_NAME}_postgis13'
image: 'postgis/postgis:13-master'
hostname: postgres
platform: linux/amd64
restart: always
environment:
POSTGRES_USER: tiamat
POSTGRES_PASSWORD: tiamat
POSTGRES_HOST: postgres
ports:
- "37432:5432"
volumes:
- postgres-data:/var/lib/postgresql
networks:
- tiamat-net
localstack:
container_name: "${COMPOSE_PROJECT_NAME}_localstack"
profiles: ["aws"]
image: localstack/localstack:4.0
ports:
- "37566:4566" # LocalStack Gateway
- "37510-37559:4510-4559" # external services port range
environment:
- DEBUG=${DEBUG-}
- DOCKER_HOST=unix:///var/run/docker.sock
- DISABLE_EVENTS=1
- SERVICES=s3
- AWS_ACCESS_KEY_ID=localstack
- AWS_SECRET_ACCESS_KEY=localstack
- AWS_DEFAULT_REGION=eu-north-1
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
- "./scripts/init-localstack.sh:/etc/localstack/init/ready.d/init-localstack.sh"
networks:
- tiamat-net
volumes:
postgres-data:
networks:
tiamat-net: