-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-compose.yml
52 lines (47 loc) · 974 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
45
46
47
48
49
50
51
52
version: "3.8"
services:
pm-app:
container_name: portfolio-manager-app
build:
context: .
restart: unless-stopped
expose:
- "8020"
networks:
- frontend
- backend
volumes:
- pm_static_files:/opt/app/portfoliomanager/collected_files
depends_on:
- pm-db
pm-frontend:
container_name: pm-frontend
image: nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
networks:
- frontend
volumes:
- pm_static_files:/static
- ./nginx/config/nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- pm-app
pm-db:
container_name: pm-db
image: postgres:13
env_file: ./env_files/.postgresql-env
restart: unless-stopped
volumes:
- postgres_data:/var/lib/postgresql/data/
networks:
- backend
volumes:
postgres_data:
pm_static_files:
networks:
frontend:
name: "pm-frontend"
backend:
name: "pm-backend"