-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (77 loc) · 2.03 KB
/
docker-compose.yml
File metadata and controls
80 lines (77 loc) · 2.03 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
postgresql:
container_name: postgresql
build:
context: ./Docker/PostgreSQL
dockerfile: Dockerfile
volumes:
- postgresql_volume:/var/lib/postgresql
networks:
- hypertube-network
environment:
POSTGRESQL_ROOT_PASSWORD: ${POSTGRESQL_ROOT_PASSWORD}
POSTGRESQL_USER: ${POSTGRESQL_USER}
POSTGRESQL_PASSWORD: ${POSTGRESQL_PASSWORD}
POSTGRESQL_DATABASE: ${POSTGRESQL_DATABASE}
TZ: ${TIMEZONE}
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}",
]
interval: 10s
timeout: 5s
retries: 5
restart: on-failure
ports:
- "5432:5432"
expose:
- "5432"
backend:
container_name: backend
build:
context: ./Docker/Backend
dockerfile: Dockerfile
volumes:
- ./Backend:/backend
- ./uploads:/uploads
- ./downloads:/downloads
networks:
- hypertube-network
environment:
TZ: ${TIMEZONE}
depends_on:
postgresql:
condition: service_healthy
env_file: .env
ports:
- "3001:3001"
restart: on-failure
frontend:
container_name: frontend
build:
context: ./Docker/Frontend
dockerfile: Dockerfile
volumes:
- ./Frontend:/Frontend
networks:
- hypertube-network
environment:
TZ: ${TIMEZONE}
env_file: .env
ports:
- "3000:3000"
expose:
- "3000"
restart: on-failure
volumes:
postgresql_volume:
driver: local
driver_opts:
type: "none"
o: "bind"
device: "${POSTGRESQL_VOLUME_PATH}"
networks:
hypertube-network:
driver: bridge