forked from unboxed/bops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (58 loc) · 1.33 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
---
services:
db:
image: postgres:13.4
volumes:
- type: volume
source: db
target: /var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5433:5432"
web:
build: .
entrypoint: ./docker-entrypoint.sh
command: bash -c "bundle exec rails s -b 0.0.0.0"
stdin_open: true
tty: true
environment:
DATABASE_URL: postgres://postgres:postgres@db:5432
APPLICANTS_APP_HOST: southwark.localhost:3001
GROVER_NO_SANDBOX: "true"
OS_VECTOR_TILES_API_KEY: ${OS_VECTOR_TILES_API_KEY}
ports:
- "3000:3000"
- "3333:3333"
depends_on:
- db
networks:
default:
aliases:
- southwark.southwark.localhost
volumes:
- type: bind
source: .
target: /app
applicants:
build: ./bops-applicants
entrypoint: ./docker-entrypoint.sh
stdin_open: true
tty: true
command: bash -c "bundle exec rails s -p 3001 -b 0.0.0.0"
environment:
API_BEARER: 123
API_HOST: southwark.localhost:3000
API_USER: api_user
PORT: 3001
PROTOCOL: http
OS_VECTOR_TILES_API_KEY: ${OS_VECTOR_TILES_API_KEY}
ports:
- "3001:3001"
volumes:
- type: bind
source: ./bops-applicants/
target: /app
volumes:
db: