-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
123 lines (115 loc) · 3.02 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
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
version: "3"
networks:
gamma:
mat:
services:
# backend:
# build:
# context: ./backend
# dockerfile: dev.Dockerfile
# image: linkit_backend:dev
# ports:
# - 4000:4000
# - 4001:4001
# volumes:
# - ./backend:/usr/src/app
# environment:
# ADMINS: admin
# REDIRECT_URL: "localhost:3001"
# networks:
# - mat
# - gamma
# depends_on:
# - redis
# - gamma-backend
frontend:
build:
context: ./frontend
dockerfile: dev.Dockerfile
image: linkit_frontend:dev
networks:
- mat
ports:
- 3001:3000
volumes:
- ./frontend/src:/usr/src/app/src
- ./frontend/public:/usr/src/app/public
adminer:
image: adminer
ports:
- 8085:8080
networks:
- mat
db:
image: postgres:12
restart: always
networks:
- mat
environment:
POSTGRES_DB: bookit
POSTGRES_USER: postgres
POSTGRES_PASSWORD: example
ports:
- 5432:5432 # Used by datagrip
redis:
image: redis:5.0.8
networks:
- mat
ports:
- 6379:6379
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
- mat
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