-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
46 lines (43 loc) · 1.04 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
version: '3'
services:
# postgres db -- persists to local volume
postgres:
container_name: bb-db
ports:
- 5400:5432
volumes:
# add-hoc transfers
- ~/code/.docker-volumes/host:/host
# postgres data
- ~/code/.docker-volumes/postgres/beatbucket:/var/lib/postgresql/data
image: postgres
environment:
POSTGRES_PASSWORD: password
PGDATA: /var/lib/postgresql/data/pgdata
server:
container_name: bb-server
build: ./server
ports:
- 5000:5000
volumes:
- ./server:/usr/src/app
environment:
APP_SETTINGS: api.config.DevConfig
SECRET_KEY: development_key
DATABASE_URL: postgresql://postgres:password@bb-db:5432/beatbucket
DATABASE_TEST_URL: postgresql://postgres:password@bb-db:5432/beatbucket_test
depends_on:
- postgres
links:
- postgres
client:
container_name: bb-client
build: ./client
ports:
- 3000:3000
volumes:
- ./client:/usr/src/app
depends_on:
- server
links:
- server