forked from RetroOlympics/www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (40 loc) · 972 Bytes
/
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
# TODO: add dev/prod profile(s)
# TODO: add nginx reverse proxy
services:
frontend:
build: ./frontend
volumes:
- nextjs-cache:/workspace/.next
- node-modules:/workspace/node_modules
- ./frontend:/workspace:cached
working_dir: /workspace
command: pnpm run dev
restart: unless-stopped
ports:
- "8000:3000"
backend:
build: ./backend
volumes:
- ./backend:/workspace:cached
working_dir: /workspace
command: invoke run-back #TODO: switch to wsgi for prod
stop_signal: SIGINT
restart: unless-stopped
ports:
- "8001:5000"
depends_on:
- db
db:
image: postgres:16-alpine
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: retroolympics
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
postgres-data:
nextjs-cache:
node-modules: