-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
37 lines (34 loc) · 1010 Bytes
/
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
version: "3"
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: devDockerfile
environment:
- TEAM_DATABASE_URL=postgres://postgres:@team_postgres:5432/team
- TEAM_DOMAIN=${TEAM_DOMAIN}
- TEAM_SLACK=${TEAM_SLACK}
- TEAM_GOOGLE_CLIENT_ID=${TEAM_GOOGLE_CLIENT_ID}
- TEAM_GOOGLE_CLIENT_SECRET=${TEAM_GOOGLE_CLIENT_SECRET}
- TEAM_GOOGLE_REDIRECT_URL=${TEAM_GOOGLE_REDIRECT_URL}
- TEAM_GOOGLE_ALLOW_DOMAIN=${TEAM_GOOGLE_ALLOW_DOMAIN}
- TEAM_SECRET_COOKIE=${TEAM_SECRET_COOKIE}
- RUST_BACKTRACE=${TEAM_RUST_BACKTRACE}
volumes:
- .:/source
logging:
options:
max-size: "500k"
ports:
- "3000:3000"
external_links:
- team_postgres