-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.docker-compose.yml
More file actions
45 lines (42 loc) · 1002 Bytes
/
dev.docker-compose.yml
File metadata and controls
45 lines (42 loc) · 1002 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
42
43
44
45
version: "3.8"
services:
postgres-instance:
image: postgres:latest
restart: "on-failure"
environment:
POSTGRES_USER: default
POSTGRES_DB: brief
POSTGRES_PASSWORD: password
container_name: postgres-brief
# Uncomment the lines below after creating 'postgres/datadir' in root directory
# volumes:
# - /postgres/datadir:.
networks:
- "my_network"
brief:
build:
dockerfile: Dockerfile.dev
restart: "unless-stopped"
depends_on:
- postgres-instance
ports:
- '8080:8080'
container_name: brief
environment:
- SERVER_PORT=8080
- SECRET_KEY=change-this-in-production
# - REDIS_HOST=
# - REDIS_PORT=
- PG_HOST=postgres-instance
- PG_PORT=5432
- PG_DATABASE=brief
- PG_USER=default
- PG_PASSWORD=password
- ADMIN_ID=admin
- ADMIN_PASSWORD=password
volumes:
- .:/app
networks:
- "my_network"
networks:
my_network: