-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
53 lines (50 loc) · 1.23 KB
/
docker-compose.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
50
51
52
53
services:
api:
ports:
- "8000:8000"
build:
context: backend/
dockerfile: Dockerfile
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
YET_ANOTHER_CALENDAR_DEBUG: True
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:
build:
context: ./frontend
target: dev-run
image: ghcr.io/azamatkomaev/yet_another_calendar_frontend:${YET_ANOTHER_CALENDAR_VERSION:-latest}
container_name: calendar-frontend
env_file:
- frontend/.env
environment:
REACT_APP_BACKEND_URL: http://127.0.0.1:8000
restart: always
volumes:
- ./frontend/src:/app/src
ports:
- "3000:3000"
volumes:
redis_data: