-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (40 loc) · 1 KB
/
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
42
43
44
45
46
47
version: '3.8'
volumes:
hr_practicum_database_volume:
hr_practicum_static_volume:
hr_practicum_media_volume:
services:
hr_practicum_database:
image: postgres:15-alpine
volumes:
- hr_practicum_database_volume:/var/lib/postgresql/data/
env_file:
- .env
hr_practicum_redis:
image: redis:7.2.1-alpine
hr_practicum_backend:
build: ./hakaton/
env_file: .env
volumes:
- hr_practicum_static_volume:/app/static
- hr_practicum_media_volume:/app/media
depends_on:
- hr_practicum_database
- hr_practicum_redis
hr_practicum_frontend:
build: ../frontend/
volumes:
- hr_practicum_static_volume:/app/build
env_file: .env
depends_on:
- hr_practicum_backend
hr_practicum_gateway:
build: ./gateway/
ports:
- "8000:8000"
volumes:
- hr_practicum_static_volume:/var/html/static/
- hr_practicum_media_volume:/var/html/media/
depends_on:
- hr_practicum_backend
- hr_practicum_frontend