-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yaml
49 lines (46 loc) · 1.17 KB
/
docker-compose.prod.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
services:
api: &main_app
ports:
- "127.0.0.1:8000:8000"
container_name: yet_another_calendar-api
image: ghcr.io/azamatkomaev/yet_another_calendar_backend:${YET_ANOTHER_CALENDAR_VERSION:-latest}
restart: always
volumes:
- ./backend:/app/src/
env_file:
- backend/.env
depends_on:
redis:
condition: service_healthy
environment:
YET_ANOTHER_CALENDAR_HOST: 0.0.0.0
YET_ANOTHER_CALENDAR_REDIS_HOST: yet_another_calendar-redis
LOGURU_DIAGNOSE: "False"
redis:
image: redis:latest
hostname: "yet_another_calendar-redis"
restart: always
volumes:
- redis_data:/data
environment:
ALLOW_EMPTY_PASSWORD: "yes"
healthcheck:
test: redis-cli ping
interval: 1s
timeout: 3s
retries: 50
frontend:
image: ghcr.io/azamatkomaev/yet_another_calendar_frontend:${YET_ANOTHER_CALENDAR_VERSION:-latest}
build:
context: ./frontend
target: prod-run
container_name: yet_another_calendar-frontend
env_file:
- frontend/.env
restart: always
volumes:
- ./frontend/src:/app/src
ports:
- "127.0.0.1:3000:80"
volumes:
redis_data: