forked from tomgi/que
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (42 loc) · 917 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
37
38
39
40
41
42
43
44
45
46
47
version: "3.7"
services:
dev:
build:
context: .
target: dev-environment
depends_on:
- db
volumes:
- .:/work
- ruby-3.2.2-gem-cache:/usr/local/bundle
- ~/.docker-rc.d/:/.docker-rc.d/:ro
working_dir: /work
entrypoint: /work/scripts/docker-entrypoint
command: bash
environment:
DATABASE_URL: postgres://que:que@db/que-test
USE_RAILS: ~
db:
image: "postgres:${POSTGRES_VERSION-13}"
volumes:
- db-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: que
POSTGRES_PASSWORD: que
POSTGRES_DB: que-test
ports:
- 5697:5432
pg-dev:
image: "postgres:${POSTGRES_VERSION-13}"
depends_on:
- db
entrypoint: []
command: psql
environment:
PGHOST: db
PGUSER: que
PGPASSWORD: que
PGDATABASE: que-test
volumes:
db-data: ~
ruby-3.2.2-gem-cache: ~