forked from vas3k/infomate.club
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (34 loc) · 789 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.7'
services:
infomate_app: &app
build:
context: .
args:
requirements: requirements.txt
command: make docker_run
container_name: infomate_app
environment:
- DEBUG=True
- PYTHONUNBUFFERED=1
restart: always
volumes:
- .:/app:delegated
depends_on:
- postgres
ports:
- "8000:8000"
postgres:
image: postgres:11
container_name: infomate_postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=infomate
ports:
- 5432
migrate_and_init:
<<: *app
container_name: infomate_migrate_and_init
restart: "no"
ports: []
command: make migrate feed_init # feed_refresh # <-- uncomment to parse some data