-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
142 lines (128 loc) · 3.62 KB
/
docker-compose.yml
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
version: "3"
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
# ports:
# - 5000:5000
# volumes:
# - ./backend/:/usr/src/secretary-manager/backend
# networks:
# - secretary
# - gamma
secretary-frontend:
image: styrit_secretary_manager_frontend_dev
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-frontend:
image: cthit/gamma-frontend:development
environment:
HTTP_PROXY: http://gamma-backend:8081
depends_on:
- gamma-backend
networks:
- gamma
ports:
- 3000:3000
gamma-backend:
image: cthit/gamma-backend
environment:
# Default admin user name = admin
# Default admin password = password
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_URL: http://gamma-gotify:8080/mail
DEFAULT_CLIENT_NAME: demo
DEFAULT_CLIENT_ID: id
DEFAULT_CLIENT_SECRET: secret
DEFAULT_REDIRECT_URI: http://localhost:3001/auth/account/callback
SERVER_PORT: 8081
SUCCESSFUL_LOGIN: http://localhost:3000
CORS_ALLOWED_ORIGIN: http://localhost:3000
BACKEND_URI: http://localhost:8081
PRODUCTION: "false"
COOKIE_DOMAIN: localhost
IS_MOCKING_CLIENT: "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