forked from ProEpiDesenvolvimento/guardioes-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (43 loc) · 1.26 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
44
version: "3.6"
services:
db:
image: postgres:13
volumes:
- ./tmp/db:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: db
# dbbackup:
# image: postgres
# ports:
# - "5432:5432"
# volumes:
# - ./tmp/db:/var/lib/postgresql/data
# environment:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: postgres
# POSTGRES_DB: db
web:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3001 -b '0.0.0.0'"
volumes:
- .:/myapp
ports:
- "3001:3001"
depends_on:
- db
environment:
DATABASE_URL: postgres://postgres@db
DATABASE_PASSWORD: $DATABASE_PASSWORD
TWITTER_API_CONSUMER_KEY: $TWITTER_API_CONSUMER_KEY
TWITTER_API_CONSUMER_SECRET: $TWITTER_API_CONSUMER_SECRET
TWITTER_API_ACCESS_TOKEN: $TWITTER_API_ACCESS_TOKEN
TWITTER_API_ACCESS_TOKEN_SECRET: $TWITTER_API_ACCESS_TOKEN_SECRET
MAILER_ADRESS: $MAILER_ADRESS
MAILER_EMAIL: $MAILER_EMAIL
MAILER_EMAIL_PASSWORD: $MAILER_EMAIL_PASSWORD
GODATA_KEY: $GODATA_KEY
CSV_DATA_KEY: $CSV_DATA_KEY
METABASE_SITE_URL: $METABASE_SITE_URL
METABASE_SECRET_KEY: $METABASE_SECRET_KEY