-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (48 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
50 lines (48 loc) · 1.21 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
# Database + Webserver (under http, for testing setup on localhost:80)
#
# docker-compose -f docker-compose.dev.yml up -d
#
services:
# For Postgres <18, use the default PGDATA and volume path
postgres:
restart: unless-stopped
image: postgres:latest
environment:
# Uncomment the next line for Postgres 18+
# PGDATA: /var/lib/postgresql/18/docker
volumes:
# For Postgres <18:
- postgres_data:/var/lib/postgresql/data
# For Postgres 18+, comment the above and uncomment below:
# - postgres_data:/var/lib/postgresql/18/docker
env_file:
- ./database/.env.dev
backend:
depends_on:
- postgres
restart: "unless-stopped"
build: ./backend
env_file:
- ./backend/.env
environment:
- DEFAULT_DATABASE_HOSTNAME=postgres
- DEFAULT_DATABASE_PORT=5432
- WATCHFILES_FORCE_POLLING=true
volumes:
- ./backend:/build
frontend:
restart: unless-stopped
build: ./frontend
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- "3000:3000"
- "3010:3010"
discordbot:
restart: "unless-stopped"
build: ./discordbot
volumes:
postgres_data:
default_database_data:
test_database_data: