-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (46 loc) · 1.12 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
version: '3'
services:
database:
image: postgres:12.2-alpine
environment:
POSTGRES_MULTIPLE_DATABASES: postgres_dev,postgres_test
#POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres_password
volumes:
- ./docker/database/create-multiple-postgresql-databases.sh:/docker-entrypoint-initdb.d/create-multiple-postgresql-databases.sh
development:
build:
context: .
dockerfile: ./docker/app/Dockerfile
depends_on:
- database
expose:
- "3000"
ports:
- "3000:3000"
env_file:
- ./.env.development
volumes:
- .:/usr/src/app
command: sh -c "rake db:migrate && puma -p 3000"
test:
build:
context: .
dockerfile: ./docker/app/Dockerfile
depends_on:
- database
env_file:
- ./.env.test
volumes:
- .:/usr/src/app
command: sh -c "rake db:migrate"
apiblueprint:
image: quay.io/bukalapak/snowboard:v3.5.4
command: http -b 0.0.0.0:8088 --playground -c config/snowboard.yml doc.apib
expose:
- "8088"
ports:
- "8088:8088"
volumes:
- .:/doc