-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
63 lines (58 loc) · 1.95 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: '3'
services:
web:
build: .
container_name: ruby_rails_boilerplate.api
ports:
- 3000:3000
volumes:
- ./:/app
- /app/tmp
- gem-data:/usr/local/bundle
working_dir: /app
command: bundle exec puma -C config/puma.rb -e production
networks:
- ruby_rails_boilerplate-networks
depends_on:
- postgres
environment:
DATABASE_URL: postgres://default:z9GYTlrXa8Qx@ep-bold-voice-a4yp8xc9-pooler.us-east-1.aws.neon.tech:5432/verceldb?sslmode=require
POSTGRES_URL: postgres://default:z9GYTlrXa8Qx@ep-bold-voice-a4yp8xc9-pooler.us-east-1.aws.neon.tech:5432/verceldb?sslmode=require
POSTGRES_PRISMA_URL: postgres://default:z9GYTlrXa8Qx@ep-bold-voice-a4yp8xc9-pooler.us-east-1.aws.neon.tech:5432/verceldb?sslmode=require&pgbouncer=true&connect_timeout=15
POSTGRES_URL_NO_SSL: postgres://default:z9GYTlrXa8Qx@ep-bold-voice-a4yp8xc9-pooler.us-east-1.aws.neon.tech:5432/verceldb
POSTGRES_URL_NON_POOLING: postgres://default:z9GYTlrXa8Qx@ep-bold-voice-a4yp8xc9.us-east-1.aws.neon.tech:5432/verceldb?sslmode=require
POSTGRES_USER: default
POSTGRES_HOST: ep-bold-voice-a4yp8xc9-pooler.us-east-1.aws.neon.tech
POSTGRES_PASSWORD: z9GYTlrXa8Qx
POSTGRES_DATABASE: verceldb
POSTGRES_HOST_AUTH_METHOD: trust
stdin_open: true
tty: true
postgres:
image: postgres:13
container_name: ruby_rails_boilerplate.postgres
volumes:
- db-data:/var/lib/postgresql/data
networks:
- ruby_rails_boilerplate-networks
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- 5432:5432
redis:
image: redis
command: redis-server
container_name: ruby_rails_boilerplate.redis
volumes:
- redis-data:/var/shared/redis
networks:
- ruby_rails_boilerplate-networks
networks:
sample_app-networks:
name: ruby_rails_boilerplate
external: true
volumes:
db-data:
gem-data:
redis-data: