-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml.example
103 lines (97 loc) · 2.81 KB
/
docker-compose.yml.example
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
# Note: data containers are used here mainly for developing with
# MacOS. Docker performance is too slow to run rails when the gems
# and/or database is stored on host-mounted volumes.
#
# Create data volumes like this:
# docker volume create --name=proposals_data --label proposals_database
#
# docker volume create --name=redis_data --label redis_data
#
# docker volume create --name=proposals_cache --label proposals_cache
#
# Be sure to update all of the usernames, passwords, and keys with secure ones!
# Generate secure strings using:
# < /dev/urandom LC_CTYPE=C tr -dc _A-Z-a-z-0-9 | head -c${1:-64};echo
version: '3.8'
services:
db:
image: postgres:13.1
container_name: proposals_db
volumes:
- ./db/pg-init:/docker-entrypoint-initdb.d
- proposals_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=
- PSQL_TRUST_LOCALNET=true
- DB_PORT=5433
- DB_NAME=proposals_production,proposals_development,proposals_test
- DB_USER=propuser
- DB_PASS=
redis:
image: 'redis:6.2.6'
container_name: proposals_redis
command: redis-server
volumes:
- redis_data:/data
web:
build: .
container_name: proposals
command: /sbin/entrypoint.sh
ports:
- '3000:3000'
volumes:
- proposals_cache:/home/app/proposals/vendor/cache
- proposals_cache:/home/app/proposals/node_modules
links:
- db
- redis
environment:
- DB_USER=propuser
- DB_PASS=
- DB_HOST=db
- RAILS_ENV=development
- YARN_ENV=development
- RAILS_SERVE_STATIC_FILES=true
- SECRET_KEY_BASE=
- SECRET_TOKEN=
- DEVISE_SECRET_KEY=
- DEVISE_JWT_SECRET_KEY=
- DEVISE_PEPPER=
- APPLICATION_HOST=localhost
- APPLICATION_PROTOCOL=http
- ROLLBAR_ENV=development
- ROLLBAR_TOKEN=12345
- EMAIL_SERVER=mail.example.com
- EMAIL_PORT=587
- EMAIL_STARTTLS=true
- BIRS_COORD='BIRS Program Coordinator'
- CMO_COORD='CMO Program Coordinator'
- IASM_COORD='IASM Program Coordinator'
- UBCO_COORD='UBCO Program Coordinator'
- EDITFLOW_API_TOKEN=
- EDITFLOW_API_URL=
- REDIS_URL='redis://localhost:port/0'
- HMC_ACCESS=123
- HMC_SERVER=hmc_host
- HMC_PORT=2000
- SCHEDULE_API_KEY=
- WORKSHOPS_API_URL=
- WORKSHOPS_API_KEY=
- MAILHOG_HOST=localhost
volumes:
proposals_data:
external:
name: "proposals_data"
proposals_cache:
external:
name: "proposals_cache"
redis_data:
external:
name: "redis_data"