-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
46 lines (42 loc) · 1.01 KB
/
Copy pathdocker-compose.example.yml
File metadata and controls
46 lines (42 loc) · 1.01 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
version: "3.2"
services:
dev-db:
image: postgres:10.3
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: forum
volumes:
- ./postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
backend:
build: ./backend/
restart: always
environment:
DB_HOST: localhost
DB_USER: postgres
DB_PASSWORD: password
DB_PORT: 5432
DB_NAME: forum
network_mode: host
depends_on:
- dev-db
volumes:
- ./backend:/app
command: gunicorn sensehel.wsgi:application --bind 0.0.0.0:28000 --access-logfile log/access.log --error-logfile log/error.log --workers 4
frontend:
build: ./frontend
command: ["npm", "start"]
ports:
- "23000:3000"
volumes:
- ./frontend:/app/frontend
- node-modules:/app/frontend/node_modules
volumes:
node-modules: