-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
65 lines (61 loc) · 1.39 KB
/
docker-compose.dev.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
56
57
58
59
60
61
62
63
64
65
version: "3.9"
services:
db:
image: postgres:alpine
volumes:
- ./data/db:/var/lib/postgresql/data
restart: unless-stopped
environment:
- POSTGRES_DB=ttdev
- POSTGRES_USER=ttdev
- POSTGRES_PASSWORD=ttdev
web:
build: ./ttdashboard
working_dir: /code
command: ./entrypoint-dev
volumes:
- static_files:/code/static
- ./ttdashboard:/code # FOR DEVELOPMENT ONLY
ports:
- "8000:8000"
restart: unless-stopped
depends_on:
- db
environment:
- DEBUG=False
- SECRET_KEY=anything
- POSTGRES_DB=ttdev
- POSTGRES_USER=ttdev
- POSTGRES_PASSWORD=ttdev
- POSTGRES_HOST=db
- OIDC_RP_CLIENT_ID=tactics
- OIDC_RP_CLIENT_SECRET=0aqczgkeetVYjuAMfqx9WT5bmAjR3qQu
map:
build: ./ttmap
working_dir: /build
command: npm run dev # FOR DEV ONLY
ports:
- "3000:3000"
restart: unless-stopped
depends_on:
- web
volumes:
- ./ttmap:/build # FOR DEV ONLY, allows for live reload
- /usr/local/web-app/node_modules
caddy:
image: caddy:2-alpine
restart: unless-stopped
ports:
- "7623:7623"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./site:/srv
- caddy_data:/data
- caddy_config:/config
- static_files:/static
volumes:
postgres_data:
caddy_data:
external: true
caddy_config:
static_files: