-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
43 lines (40 loc) · 1.08 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
version: '2'
services:
nginx:
image: nginx:1.23-alpine
ports:
- 8042:80
links:
- mersea:app-container
volumes_from:
- mersea:ro
restart: always
mersea:
image: mersea/mersea:latest
command: /bin/sh -c "export SECRET_KEY_BASE=$$(bundle exec rake secret) && bundle exec rake db:create db:migrate && bundle exec puma -p 3000"
ports:
- 127.0.0.1:3000:3000
links:
- postgres:postgres
depends_on:
- postgres
environment:
JWT_SECRET: ${JWT_SECRET}
MERSEA_DATABASE_USERNAME: postgres
MERSEA_DATABASE_PASSWORD: postgres
MERSEA_DATABASE_HOST: postgres
MERSEA_DATABASE_PORT: 5432
RECAPTCHA_SITE_KEY: ${RECAPTCHA_SITE_KEY}
RECAPTCHA_SECRET_KEY: ${RECAPTCHA_SECRET_KEY}
BUGSNAG_API_KEY: ${BUGSNAG_API_KEY}
restart: always
postgres:
image: postgres:15-alpine
ports:
- 127.0.0.1:5433:5432
environment:
POSTGRES_PASSWORD: postgres
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./data/db:/var/lib/postgresql/data/pgdata
restart: always