-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (42 loc) · 1.1 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
version: '3.4'
services:
sump-thing-api:
image: sump-thing/api
depends_on:
- db
build:
context: .
dockerfile: Dockerfile
volumes:
- ./SumpThingApi:/app
ports:
- "5000:5000"
environment:
DB_CONNECTION_STRING: "host=db;port=5432;database=postgres;username=postgres;password=postgres;"
AUTH0_DOMAIN: "sump-thing-dev.auth0.com"
AUTH0_API_ID: "https://qa.sump-thing.com"
AUTH0_CLIENT_ID: "2x0Is1u5E9NlNybZzhva0wpYA2WY6Gcl"
AUTH0_CLIENT_SECRET: "PRyOdfGfFLlJBI9AyqyRCXVqzoDz2gZ28nmJXMRHjNAdY9Pr2amIXka_H-Himdwh"
networks:
- sump-thing-backend
db:
image: postgres:latest
ports:
- "5432:5432"
restart: always
volumes:
- data:/var/lib/postgresql/data
- ./db_scripts/seed.sql:/docker-entrypoint-initdb.d/seed.sql
- ./db_scripts/models:/app/db/models
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: "postgres"
networks:
- sump-thing-backend
networks:
sump-thing-backend:
driver: bridge
volumes:
data:
driver: local