-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (61 loc) · 1.65 KB
/
docker-compose.yml
File metadata and controls
65 lines (61 loc) · 1.65 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
version: '3'
services:
# Redis (commented out - using DynamoDB instead)
# redis:
# image: redis:alpine
# container_name: "redis"
# ports:
# - "6379:6379"
# volumes:
# - /data/redis_daily_word_bot:/data
# restart: always
localstack:
image: localstack/localstack:latest
container_name: "localstack-dynamodb"
ports:
- "4566:4566" # LocalStack gateway
environment:
- AWS_ENDPOINT_URL=http://localhost:4566
- AWS_DEFAULT_REGION=eu-central-1
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- SERVICES=dynamodb
- DEBUG=0
- PERSISTENCE=1
- SKIP_INFRA_DOWNLOADS=1
- DISABLE_CORS_CHECKS=1
- LS_LOG=warn
volumes:
- "localstack-data:/var/lib/localstack"
restart: always
healthcheck:
test: ["CMD", "awslocal", "dynamodb", "list-tables"]
interval: 10s
timeout: 5s
retries: 5
daily_word_bot_app:
build: .
image: rooom13:deutschlerne_bot
container_name: deutschlerne_bot
env_file:
- .env
links:
- localstack
# - redis # Commented out - using DynamoDB
depends_on:
localstack:
condition: service_healthy
# - "redis" # Commented out - using DynamoDB
ports:
- "8443:8443"
restart: always
environment:
# Override/add specific environment variables for DynamoDB
- AWS_ENDPOINT_URL=http://localstack:4566
- AWS_DEFAULT_REGION=eu-central-1
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
# volumes: # Commented out - not needed for DynamoDB
# - /data/redis_daily_word_bot:/data
volumes:
localstack-data: