-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
53 lines (49 loc) · 1.02 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
52
53
version: '3'
services:
api:
build: backend
ports:
- "5000:5000"
links:
- db
depends_on:
- db
environment:
- POSTGRES_USER=foo
- POSTGRES_PASSWORD=bar
- POSTGRES_HOST=db
- SLACK_OAUTH_TOKEN=${SLACK_OAUTH_TOKEN}
- KICKERSCORE_CHANNEL_ID=${KICKERSCORE_CHANNEL_ID}
db:
image: postgres:10.5-alpine
environment:
- POSTGRES_USER=foo
- POSTGRES_PASSWORD=bar
- POSTGRES_DB=kickerscore
migrator:
build: backend
links:
- db
depends_on:
- db
environment:
- POSTGRES_USER=foo
- POSTGRES_PASSWORD=bar
- POSTGRES_HOST=db
- FLASK_APP=/app/app
- SLACK_OAUTH_TOKEN=${SLACK_OAUTH_TOKEN}
- KICKERSCORE_CHANNEL_ID=${KICKERSCORE_CHANNEL_ID}
command: "flask db upgrade -d /app/migrations"
restart: on-failure
frontend:
build: frontend
ports:
- "3000:3000"
links:
- api
depends_on:
- api
environment:
- REACT_APP_API_HOST=localhost
- REACT_APP_API_PORT=5000
- REACT_APP_API_SUBDIR=