-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
48 lines (44 loc) · 1.07 KB
/
docker-compose.yaml
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
version: '3.8'
volumes:
postgres_data:
static:
admin-interface:
services:
postgres_docker:
image: postgres:14-alpine
restart:
always
volumes:
- postgres_data:/var/lib/postgresql/data/
- ./postgres_initialization/db_dump.sql:/docker-entrypoint-initdb.d/init.sql
env_file:
- ./treeEmployeeStructure/treeEmployeeStructure/.env
django:
build:
context: ./
dockerfile: Dockerfile
depends_on:
- postgres_docker
restart:
always
env_file:
- ./treeEmployeeStructure/treeEmployeeStructure/.env
volumes:
- static:/code/treeEmployeeStructure/static
- admin-interface:/code/treeEmployeeStructure/admin-interface
entrypoint:
/code/entrypoint.sh
expose:
- 8000
nginx:
image: nginx:1.19.0-alpine
ports:
- "80:80"
volumes:
- static:/code/treeEmployeeStructure/static
- admin-interface:/code/treeEmployeeStructure/admin-interface
- ./nginx_conf/nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- django
restart:
always