-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (68 loc) · 1.48 KB
/
docker-compose.yml
File metadata and controls
71 lines (68 loc) · 1.48 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
version: "3.4"
services:
db:
image: "${REGISTRY_NAME}postgres:10.1-alpine"
volumes:
- projseeker_db:/var/lib/postgresql/data/
environment:
- POSTGRES_NAME=${POSTGRES_NAME}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
networks:
- internal
restart: "always"
web:
image: "${REGISTRY_NAME}devclubiitd/projseeker:0.1"
build: .
volumes:
- "uploads:/code/ProjSeeker/uploads"
- "staticfiles:/code/ProjSeeker/staticfiles"
restart: "always"
ports:
- ${PORT}
healthcheck:
test: ["CMD", "curl", "http://localhost:${PORT}"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- internal
env_file:
- "./.env"
environment:
- VIRTUAL_HOST=${VIRTUAL_HOST}
depends_on:
- db
nginx:
image: "${REGISTRY_NAME}devclubiitd/nginx:1.21.3-alpine"
build:
context: ./nginx/
args:
- PORT=${PORT}
ports:
- "80"
restart: "always"
volumes:
- "uploads:/code/protected"
- "staticfiles:/code/staticfiles"
- "nginx_logs:/var/log/nginx"
environment:
- VIRTUAL_HOST=${VIRTUAL_HOST}
- PORT=${PORT}
networks:
- internal
- reverseproxy
depends_on:
- web
volumes:
projseeker_db:
uploads:
staticfiles:
nginx_logs:
networks:
reverseproxy:
external:
name: "reverseproxy"
internal: