-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcompose.yml
More file actions
29 lines (27 loc) · 755 Bytes
/
Copy pathcompose.yml
File metadata and controls
29 lines (27 loc) · 755 Bytes
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
services:
team_postgres:
image: postgres:10.4-alpine
container_name: team_postgres
volumes:
- ./ddl.sql:/docker-entrypoint-initdb.d/init.sql
- /tmp/postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
team_server:
container_name: team_server
build:
context: .
dockerfile: Dockerfile.dev
environment:
# Other variables come from the mounted .env (loaded by the app itself).
# The DB host differs inside the container, so only this one is overridden.
- TEAM_DATABASE_URL=postgres://postgres:@team_postgres:5432/team
volumes:
- .:/source
logging:
options:
max-size: "500k"
ports:
- "3000:3000"
external_links:
- team_postgres