-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (68 loc) · 1.61 KB
/
docker-compose.yml
File metadata and controls
73 lines (68 loc) · 1.61 KB
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
63
64
65
66
67
68
69
70
71
72
73
# https://docker-docs.uclv.cu/compose/compose-file/compose-versioning/
version: "3"
services:
app:
build:
context: ..
dockerfile: .devcontainer/Dockerfile
volumes:
- ..:/workspace:cached
# Overrides default so things don't shut down after the process ends
command: sleep infinity
depends_on:
- db
- cache
- aws
networks:
- db
- cache
- aws
environment:
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
AWS_ENDPOINT_URL: http://aws:4566
db:
image: postgres:17
restart: unless-stopped
volumes:
- ../.data/postgres:/var/lib/postgresql/data
networks:
- db
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
cache:
image: redis:7.4
restart: unless-stopped
volumes:
- ../.data/redis:/data
networks:
- cache
# https://docs.localstack.cloud/getting-started/installation/#docker-compose
aws:
container_name: aws
image: localstack/localstack:4.3.0
restart: unless-stopped
ports:
# Main LocalStack port for all services.
- "4566:4566"
# Optional: Range for specific service ports if needed.
- "4510-4559:4510-4559"
# https://docs.localstack.cloud/references/configuration/
environment:
DEBUG: 0
SERVICES: s3,sqs
DEFAULT_REGION: us-east-1
volumes:
- ../.data/localstack:/var/lib/localstack
- /var/run/docker.sock:/var/run/docker.sock
networks:
- aws
networks:
db:
driver: bridge
cache:
driver: bridge
aws:
driver: bridge