-
Notifications
You must be signed in to change notification settings - Fork 6
/
prod.docker-compose.yml
97 lines (86 loc) · 1.83 KB
/
prod.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
version: "3"
networks:
gamma:
services:
db:
image: postgres:10
restart: always
environment:
POSTGRES_USER: user # These should all be changed
POSTGRES_PASSWORD: password
POSTGRES_DB: db
networks:
- gamma
frontend:
image: frontend:latest
build:
context: ./frontend/
dockerfile: Dockerfile
args:
REACT_APP_BACKEND_URL: http://localhost:8080/api
depends_on:
- backend
networks:
- gamma
backend:
build:
context: ./backend/
dockerfile: dockerfile
environment:
# Default admin user name = admin
# Default admin password = password
DB_USER: user
DB_PASSWORD: password
DB_HOST: db
DB_PORT: 5432
DB_NAME: postgres
REDIS_HOST: redis
REDIS_PASSWORD: ""
REDIS_PORT: 6379
GOTIFY_KEY: "123abc"
GOTIFY_URL: http://gotify:8080/mail
SERVER_PORT: 8081
SUCCESSFUL_LOGIN: http://localhost:8080
CORS_ALLOWED_ORIGIN: http://localhost:8080
BACKEND_URI: http://localhost:8080/api/
PRODUCTION: "false"
COOKIE_DOMAIN: localhost
IS_MOCKING_CLIENT: "true"
depends_on:
- redis
- db
networks:
- gamma
redis:
image: redis
networks:
- gamma
adminer:
image: adminer
restart: always
networks:
- gamma
ports:
- 8082:8080
gotify:
image: cthit/gotify
networks:
- gamma
environment:
GOTIFY_PRE-SHARED-KEY: 123abc
GOTIFY_MOCK-MODE: "true"
proxy:
image: nginx:1.16.0-alpine
networks:
- gamma
ports:
- 8080:80
environment:
- NGINX_HOST=localhost
- NGINX_PORT=80
volumes:
- ./nginx-proxy.conf:/etc/nginx/nginx.conf:ro
depends_on:
- frontend
- backend
command: [nginx-debug, '-g', 'daemon off;']