forked from sourcerer-io/sourcerer-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
28 lines (27 loc) 路 1.09 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
28 lines (27 loc) 路 1.09 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
# Local development overlay. Serves the app over plain HTTP on :8080 so it
# matches a GitHub OAuth app whose callback URL is
# http://localhost:8080/auth/github/callback, and skips the TLS proxy entirely.
#
# docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d
#
# Never use this file in production: ENV=development relaxes the Secure flag on
# session cookies (the browser would otherwise discard them over HTTP) and
# allows the ingestion API to run without a token.
services:
backend:
environment:
- ENV=development
- PUBLIC_BASE_URL=http://localhost:8080
ports:
- "127.0.0.1:8080:8080"
volumes:
# Enables template and stylesheet hot-reload: the binary looks for
# templates/*.html and static/ in its working directory and falls back to
# the embedded copies otherwise.
- ./backend/templates:/app/templates:ro
- ./backend/static:/app/static:ro
# The TLS proxy is not part of the HTTP dev loop. Parking it behind a profile
# keeps `up` from starting it without having to maintain a second file.
proxy:
profiles:
- tls