-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-local.yml
55 lines (54 loc) · 1.12 KB
/
docker-compose-local.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
54
55
version: '3.8'
services:
db:
image: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: knowledge
ports:
- '5432:5432'
volumes:
- db:/var/lib/postgresql/data
redis:
image: redis:6-alpine
restart: always
ports:
- '6379:6379'
command: redis-server
volumes:
- redis:/data
app:
build:
context: .
dockerfile: deployment/app/dev.Dockerfile
depends_on:
- db
- redis
ports:
- '8000:8000'
environment:
APP_DATABASE__HOST: db
APP_DATABASE__USER: postgres
APP_DATABASE__PASSWORD: password
APP_DATABASE__DATABASE_NAME: knowledge
APP_REDIS_URI: "redis://redis:6379"
volumes:
- ./src:/app/src
- ./templates:/app/templates
- ./public:/app/public
startup:
build:
context: .
dockerfile: deployment/startup/Dockerfile
depends_on:
- db
environment:
DATABASE_URL: "postgres://postgres:password@db:5432/knowledge"
volumes:
db:
driver: local
redis:
driver: local
nginx_secrets: