forked from antoinejaussoin/retro-board
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
78 lines (74 loc) · 2.58 KB
/
docker-compose.example.yml
File metadata and controls
78 lines (74 loc) · 2.58 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
version: '3'
services:
postgres:
image: postgres:11.6
hostname: postgres
environment:
POSTGRES_USER: postgres # Must be the same as DB_USER below
POSTGRES_PASSWORD: postgres # Must be the same as DB_PASSWORD below
POSTGRES_DB: retroboard # Must be the same as DB_NAME below
volumes:
- database:/var/lib/postgresql/data
restart: unless-stopped
logging:
driver: 'json-file'
options:
max-size: '50m'
pgadmin:
image: dpage/pgadmin4:latest
depends_on:
- postgres
ports:
- '8080:80' # Change 8080 to whatever port you want to access pgAdmin from
environment:
PGADMIN_DEFAULT_EMAIL: admin@retrospected.com # Can be anything
PGADMIN_DEFAULT_PASSWORD: admin # Please change this!
volumes:
- pgadmin:/var/lib/pgadmin
restart: unless-stopped
logging:
driver: 'json-file'
options:
max-size: '50m'
backend:
image: antoinejaussoin/retro-board-backend:latest
depends_on:
- postgres
environment:
NODE_ENV: production
DB_TYPE: postgres
DB_NAME: retroboard # Must be the same as POSTGRES_DB above
DB_USER: postgres # Must be the same as POSTGRES_USER above
DB_PASSWORD: postgres # Must be the same as POSTGRES_PASSWORD above
DB_HOST: postgres # Must be the name of the Postgres container
DB_PORT: 5432 # Don't change this.
BACKEND_PORT: 3201 # Don't change this (or change it in nginx.conf as well)
SQL_LOG: 'false' # Whether to log SQL queries in the console
REDIS_ENABLED: 'false' # Whether to enable Redis, only useful in the context of a Kubernetes cluster
REDIS_PORT: 6379 # Not used by default
REDIS_HOST: redis # Not used by default
SENTRY_URL: '' # Optional, Sentry URL (https://1234567890abcdef12345@sentry.io/1234567)
restart: unless-stopped
logging:
driver: 'json-file'
options:
max-size: '50m'
frontend:
image: antoinejaussoin/retro-board-frontend:latest
depends_on:
- backend
ports:
- '80:80' # Change the first 80 to whatever port you want to access Retrospected from
environment:
BACKEND_HOST: backend # This should be the name of the backend service
BACKEND_PORT: 3201 # This should be the same as BACKEND_PORT on backend
GA_ID: '' # Optional, Google Analytics ID (UA-1234456-7)
SENTRY_URL: '' # Optional, Sentry URL (https://1234567890abcdef12345@sentry.io/1234567)
restart: unless-stopped
logging:
driver: 'json-file'
options:
max-size: '50m'
volumes:
database:
pgadmin: