-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-base-dev.yml
More file actions
58 lines (52 loc) · 1.17 KB
/
docker-compose-base-dev.yml
File metadata and controls
58 lines (52 loc) · 1.17 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
version: '3.8'
services:
backend-database:
build:
context: ./backend_database
container_name: backend-database
volumes:
- ./backend_database:/app
depends_on:
- postgres-data
- patients-postgres-data
env_file:
- .env
postgres-data:
image: postgres:14
container_name: postgres-data
env_file:
- .env
volumes:
- postgres-data:/var/lib/postgresql/data
patients-postgres-data:
image: postgres:14
container_name: patients-postgres-data
environment:
POSTGRES_DB: ${PATIENTS_POSTGRES_NAME}
POSTGRES_USER: ${PATIENTS_POSTGRES_USER}
POSTGRES_PASSWORD: ${PATIENTS_POSTGRES_PASSWORD}
volumes:
- patients-postgres-data:/var/lib/postgresql/data
frontend:
build:
context: ./frontend
container_name: frontend
volumes:
- ./frontend:/app
depends_on:
- backend-database
env_file:
- .env
nginx:
image: nginx:latest
container_name: nginx
ports:
- "80:80"
volumes:
- ./nginx/development:/etc/nginx/conf.d
depends_on:
- frontend
- backend-database
volumes:
postgres-data:
patients-postgres-data: