-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (48 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
53 lines (48 loc) · 1.12 KB
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
services:
db:
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_HOST_AUTH_METHOD: trust
redis:
image: redis:latest
web: &app
platform: linux/amd64
# Use JAZZBAND_IMAGE if set (for CI), otherwise build locally
image: ${JAZZBAND_IMAGE:-}
build:
context: .
dockerfile: ${DOCKERFILE:-Dockerfile}
volumes:
- .:/app
- cache:/app/.cache:delegated
command: sh -c 'wait-for-it db:5432 redis:6379 -- honcho start -f Procfile.dev web'
environment:
# pass those two into the environment
# but also response the .env file for the rest
FLASK_APP: jazzband/app.py
FLASK_DEBUG: 1
# Force HTTP for OAuth
OAUTHLIB_INSECURE_TRANSPORT: '1'
env_file:
- .env
ports:
- "5000:5000"
links:
- db
- redis
- email
labels:
- dev.orbstack.domains=jazzband.local
worker:
<<: *app
command: sh -c 'wait-for-it db:5432 redis:6379 -- honcho start -f Procfile.dev worker'
ports: []
email:
image: maildev/maildev
ports:
- "1080:80"
- "1025:1025"
volumes:
cache: