-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (51 loc) · 1.3 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
version: "3"
services:
front:
build: ./projects/bird_healthcare_frontend/
command: yarn start
ports:
- "$FRONTEND_SERVER_PORT:3000"
volumes:
- ./projects/bird_healthcare_frontend/:/myapp/frontend
- modules:/bird_healthcare/modules
stdin_open: true
back:
build: ./projects/bird_healthcare_backend/
command: >
sh -c "rm -f tmp/pids/server.pid &&
bundle exec rails server -b 0.0.0.0"
volumes:
- ./projects/bird_healthcare_backend/:/myapp/backend
- bundle:/bird_healthcare/bundle
hostname: backend-api
ports:
- "$BACKEND_SERVER_PORT:3000"
environment:
- BUNDLE_PATH=/bird_healthcare/bundle
- DATABASE_HOST=$DATABASE_HOST
- DATABASE_USERNAME=$DATABASE_USERNAME
- DATABASE_PASSWORD=$DATABASE_PASSWORD
- DATABASE_PORT=$DATABASE_PORT
depends_on:
- postgres
tty: true
stdin_open: true
postgres:
image: postgres:9.6-alpine
volumes:
- postgresql-data:/var/lib/postgresql
ports:
- "$DATABASE_PORT:5432"
environment:
- POSTGRES_USER=$DATABASE_USERNAME
- POSTGRES_PASSWORD=$DATABASE_PASSWORD
- LC_COLLATE=C
- LC_CTYPE=C
- LC_MESSAGES=C
- LC_MONETARY=C
- LC_NUMERIC=C
- LC_TIME=C
volumes:
modules:
bundle:
postgresql-data: