forked from WEHI-RCPStudentInternship/REDMANE_Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
67 lines (62 loc) · 1.59 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
67 lines (62 loc) · 1.59 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
services:
db:
image: postgres:15
container_name: redmane-db
restart: always
environment:
POSTGRES_DB: readmedatabase
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
- postgres_data:/var/lib/postgresql/data
- ./REDMANE_fastapi_public_data:/docker-entrypoint-initdb.d
ports:
- "5432:5432"
networks:
- redmane-network
backend:
build:
context: ./
dockerfile: ./redmane_fastapi.dockerfile
ports:
- "8888:8888"
environment:
DATABASE_URL: postgresql://postgres:password@db:5432/readmedatabase
depends_on:
- db
networks:
- redmane-network
frontend-build:
build:
context: ./
dockerfile: ./redmane_reactjs.dockerfile
volumes:
- frontend-static:/static
restart: "no"
https-portal:
image: steveltn/https-portal:1
ports:
- "${HOST_HTTP_PORT}:80"
- "${HOST_SSL_PORT}:443"
environment:
DOMAINS: "${PORTAL_DOMAIN}"
# Do not use production until ready because Let's Encrypt has rate limits
STAGE: "${PORTAL_STAGE}" # local, 'staging', 'production'
volumes:
- https-portal-data:/var/lib/https-portal
- ./${PORTAL_CONFIG}:/var/lib/nginx-conf/${PORTAL_CONFIG}:ro
- frontend-static:/var/www/vhosts/data-registry:ro
depends_on:
backend:
condition: service_started
frontend-build:
condition: service_completed_successfully
networks:
- redmane-network
volumes:
postgres_data:
https-portal-data:
frontend-static:
networks:
redmane-network:
driver: bridge