-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (79 loc) · 1.92 KB
/
docker-compose.yml
File metadata and controls
79 lines (79 loc) · 1.92 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
version: "3.7"
services:
nginx-proxy:
image: jwilder/nginx-proxy
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy"
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./certs:/etc/nginx/certs
- ./vhost:/etc/nginx/vhost.d
- ./html:/usr/share/nginx/html
networks:
- frontend-network
nginx-proxy-acme:
image: nginxproxy/acme-companion
container_name: nginx-proxy-acme
depends_on:
- "nginx-proxy"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./certs:/etc/nginx/certs
- ./vhost:/etc/nginx/vhost.d
- ./html:/usr/share/nginx/html
- ./acme:/etc/acme.sh
environment:
- DEFAULT_EMAIL=vineshb100@gmail.com
networks:
- frontend-network
frontend:
build: ./src/client
container_name: client
restart: always
expose:
- 3000
environment:
- VIRTUAL_HOST=scholarly-c09.tech
- LETSENCRYPT_HOST=scholarly-c09.tech
networks:
- frontend-network
backend:
build: ./src/server
container_name: server
restart: always
expose:
- 3001
environment:
- VIRTUAL_HOST=api.scholarly-c09.tech
- LETSENCRYPT_HOST=api.scholarly-c09.tech
networks:
- backend-network
- frontend-network
postgres:
image: postgres:13.1
user: postgres
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "postgres", "-U", "postgres"]
timeout: 45s
interval: 10s
retries: 10
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- APP_DB_USER=postgres
- APP_DB_PASS=postgres
- APP_DB_NAME=postgres
volumes:
- ./db:/docker-entrypoint-initdb.d/
ports:
- 5432:5432
networks:
- backend-network
networks:
backend-network:
frontend-network: