This repository has been archived by the owner on Jul 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
77 lines (65 loc) · 1.74 KB
/
docker-compose.yaml
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
version: "3.8"
services:
backend:
restart: always
container_name: back
environment:
BUILDKIT_INLINE_CACHE: 1
DB_USER: "cnehcbso"
DB_NAME: "cnehcbso"
DB_HOST: "raja.db.elephantsql.com"
DB_PASS: "qy2xdb_zEcAZFOmY7fvQT1SddHRUhbCI"
DB_PORT: "5432"
ORIGIN_HOST: "localhost"
ORIGIN_PORT: "3000"
DJ_SK: "@!6b5hzk8m7y+gdyeq$$8&@g!c%0m+8hhaquat0=ml80biwz)kg"
image: cs320track2/backend
command: bash -c "cd lead && python manage.py check --tag database && python manage.py runserver 0.0.0.0:8000"
networks:
- default-net
image: cs320track2/backend:latest
depends_on:
- "database"
database:
restart: always
container_name: db
environment:
POSTGRES_PASSWORD: "password"
BUILDKIT_INLINE_CACHE: 1
image: cs320track2/database:latest
volumes:
- ./database/postgres.conf:/etc/postgresql/postgresql.conf
- ./database/schema.sql:/docker-entrypoint-initdb.d/schema.sql
command: postgres -c config_file=/etc/postgresql/postgresql.conf
networks:
- default-net
frontend:
restart: always
command : npm start
container_name: front
environment:
BUILDKIT_INLINE_CACHE: 1
CI: "true"
REACT_APP_ENDPOINT_URL: "http://localhost:8000"
image: cs320track2/frontend
stdin_open: true
depends_on:
- backend
networks:
- default-net
shibboleth:
restart: always
container_name: shibd
environment:
BUILDKIT_INLINE_CACHE: 1
DOCKER_IP: DOCKER_HOST
image: cs320track2/shibboleth
stdin_open: true
networks:
- default-net
command: bash -c "./etc/shibboleth/shib_start.sh"
networks:
default-net:
driver: bridge
volumes:
postgres_data: