-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (38 loc) · 965 Bytes
/
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
services:
iahx_controller:
container_name: iahx-controller
build:
context: .
target: prod
restart: unless-stopped
env_file: ".env"
environment:
- VIRTUAL_HOST=${VIRTUAL_HOST}
- LETSENCRYPT_HOST=${VIRTUAL_HOST}
volumes:
- redis_data:/redis_data
ports:
- ${APP_PORT}:8000
command: uvicorn app:app --host 0.0.0.0 --port 8000 ${APP_RUN_PARAMS}
networks:
- nginx-proxy
iahx_controller_cache:
image: bitnami/redis:7.2
container_name: iahx-controller-cache
restart: unless-stopped
ports:
- 6379:6379
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_AOF_ENABLED=no
- TZ=${TIMEZONE}
volumes:
- redis_data:/bitnami/redis/data
command: /opt/bitnami/scripts/redis/run.sh --maxmemory ${APP_CACHE_MEMORY} --maxmemory-policy allkeys-lru
networks:
- nginx-proxy
networks:
nginx-proxy:
external: true
volumes:
redis_data: