-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
126 lines (119 loc) · 3.31 KB
/
docker-compose.yml
File metadata and controls
126 lines (119 loc) · 3.31 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
networks:
gamma:
secretary:
services:
secretary-db:
image: postgres
restart: always
environment:
POSTGRES_USER: secretary
POSTGRES_DB: secretary
POSTGRES_PASSWORD: password
ports:
- 5432:5432
networks:
- secretary
adminer:
image: adminer
restart: always
ports:
- 8082:8080
networks:
- secretary
- gamma
secretary-backend:
image: styrit_secretary_manager_backend_dev
links:
- gotify
depends_on:
- secretary-db
build:
context: ./backend/
dockerfile: dev.Dockerfile
environment:
gotify_auth_key: "123abc"
frontend_admin_pass: "asd123"
SECRETARY_POSTGRES_USER: secretary
SECRETARY_POSTGRES_PASSWORD: password
SECRETARY_POSTGRES_HOST: secretary-db
SECRETARY_POSTGRES_DB: secretary
SECRETARY_POSTGRES_PORT: 5432
PYTHONUNBUFFERED: 0
GAMMA_CLIENT_ID: client-id
GAMMA_SECRET: secret
GAMMA_USERINFO_URI: https://auth.chalmers.it/oauth2/userinfo
GAMMA_TOKEN_URI: https://auth.chalmers.it/oauth2/token
GAMMA_AUTHORIZATION_URI: https://auth.chalmers.it/oauth2/authorize
GAMMA_REDIRECT_URI: http://localhost:3001/auth/account/callback
ports:
- 5000:5000
volumes:
- ./backend/:/usr/src/secretary-manager/backend
networks:
- secretary
- gamma
secretary-frontend:
build:
context: ./frontend/
dockerfile: dev.Dockerfile
ports:
- 3001:3000
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- REACT_APP_DEBUG_MODE=true
networks:
- secretary
extra_hosts:
host.docker.internal: host-gateway
gotify:
image: cthit/gotify:latest
environment:
GOTIFY_PRE-SHARED-KEY: "123abc"
GOTIFY_MOCK-MODE: "true"
GOTIFY_DEBUG-MODE: "true"
ports:
- 8080:8080
# gamma:
# image: ghcr.io/cthit/gamma:latest
# environment:
# DB_USER: user
# DB_PASSWORD: password
# DB_HOST: gamma-db
# DB_PORT: 5432
# DB_NAME: postgres
#
# REDIS_HOST: gamma-redis
# REDIS_PASSWORD: ""
# REDIS_PORT: 6379
#
# GOTIFY_KEY: "123abc"
# GOTIFY_BASE_URL: http://gotify:8080
#
# BASE_URL: "http://localhost:8081"
# SERVER_PORT: 8081
# PRODUCTION: "false"
# IS_MOCKING: "false"
# ADMIN_SETUP: "true"
# depends_on:
# - gamma-redis
# - gamma-db
# networks:
# - gamma
# ports:
# - 8081:8081
#
# gamma-redis:
# image: redis:5.0
# networks:
# - gamma
#
# gamma-db:
# image: postgres:10
# environment:
# POSTGRES_USER: user
# POSTGRES_DB: postgres
# POSTGRES_PASSWORD: password
# networks:
# - gamma