-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (33 loc) · 927 Bytes
/
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
version: "3.7"
volumes:
gem_bundle:
postgres_data:
services:
postgres:
image: postgres:13-alpine
ports:
- ${DEMO_PG_PORT:-5432}:5432
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: 3x4mpl3P455w0rd
web:
image: vovimayhem/rails-last-n-of-each-demo:development
build:
context: .
target: development
args:
APP_PATH: ${PWD:-/srv/last-n-of-each-demo}
DEVELOPER_UID: ${UID:-1000}
DEVELOPER_USERNAME: ${USER:-you}
depends_on:
- postgres
volumes:
- .:${PWD:-/srv/last-n-of-each-demo}
- gem_bundle:/usr/local/bundle
command: rails server -p 3000 -b 0.0.0.0
ports:
- ${DEMO_WEB_PORT:-3000}:3000
entrypoint: ${PWD:-/srv/last-n-of-each-demo}/bin/dev-entrypoint
environment:
DATABASE_URL: postgres://postgres:3x4mpl3P455w0rd@postgres:5432/?encoding=unicode