-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 879 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (38 loc) · 879 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
30
31
32
33
34
35
36
37
38
39
40
41
version: '3.7'
services:
infomate_app: &app
build:
context: .
args:
requirements: requirements.txt
command: make docker-run-app
container_name: infomate_app
environment:
- DEBUG=True
- PYTHONUNBUFFERED=1
- POSTGRES_DB=infomate
- POSTGRES_USER=vas3k
- POSTGRES_PASSWORD=vas3k
- POSTGRES_HOST=postgres
restart: always
volumes:
- .:/app:delegated
depends_on:
- postgres
ports:
- "8000:8000"
postgres:
image: postgres:15
container_name: infomate_postgres
environment:
- POSTGRES_USER=vas3k
- POSTGRES_PASSWORD=vas3k
- POSTGRES_DB=infomate
ports:
- "54321:5432"
migrate_and_init:
<<: *app
container_name: infomate_migrate_and_init
restart: "no"
ports: []
command: make migrate feed_init feed_refresh