This repository has been archived by the owner on Jun 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
124 lines (109 loc) · 2.53 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
version: "2"
services:
db:
image: mariadb
environment:
MYSQL_DATABASE: it_dev
MYSQL_USER: it
MYSQL_PASSWORD: iamapassword
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
ports:
- 3306:3306
redis:
image: redis
restart: unless-stopped
web:
build:
context: .
dockerfile: dev.Dockerfile
command: bash -c 'rm -f tmp/pids/server.pid && sleep 10 && sh start.sh'
networks:
- default
- gamma
volumes:
- .:/app
ports:
- 3001:3001
environment:
OAUTH_ID: id
OAUTH_SECRET: secret
CLIENT_CREDENTIALS: key
ACCOUNT_ADDRESS: http://gamma-backend:8081
ACCOUNT_REDIRECT_ADDRESS: http://localhost:8081
DATABASE_NAME: it_dev
DATABASE_USER: it
DATABASE_PASSWORD: iamapassword
REDIS_URL: redis://redis:6379/0
API_KEY: key
DATABASE_HOST: db
depends_on:
- db
adminer:
image: adminer
ports:
- 8079:8080
gotify:
image: cthit/gotify:latest
environment:
GOTIFY_PRE-SHARED-KEY: 123abc
GOTIFY_MOCK-MODE: "true"
GOTIFY_DEBUG-MODE: "true"
ports:
- 1337: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:latest
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: "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
networks:
gamma: