forked from rdlewin/MinervaTextArchiver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
57 lines (55 loc) · 1.1 KB
/
docker-compose.dev.yml
File metadata and controls
57 lines (55 loc) · 1.1 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
51
52
53
54
55
56
57
#version: '3.9.1'
services:
nginx:
# build: nginx
# command: nginx
image: nginx:latest
ports:
- 8000:8000
- 3000:3000
volumes:
- ./nginx/minerva.conf:/etc/nginx/nginx.conf
- ./src/static:/src/static
- ./src/media:/src/media
- ./ui:/src/ui
depends_on:
- web
networks:
- nginx_network
web:
build: src
command: gunicorn minerva.wsgi -b 0.0.0.0:8000
volumes:
- ./src/:/src/
- static_volume:/src/static
- media_volume:/src/media
ports:
- 8000
networks:
- nginx_network
ui:
build: ./ui
command: npm start
volumes:
- ./ui:/app
ports:
- 3000
depends_on:
- web
db:
image: postgres:14.1-alpine3.15
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=dbadmin
- POSTGRES_PASSWORD=dbadmin
- POSTGRES_DB=minerva
volumes:
postgres_data:
static_volume:
media_volume:
networks:
nginx_network:
driver: bridge