-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (71 loc) · 1.8 KB
/
docker-compose.yml
File metadata and controls
75 lines (71 loc) · 1.8 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: '3.8'
services:
pathfinderapp:
container_name: pathfinderapp
build:
context: .
dockerfile: Dockerfile
# cache_from:
# - "${WEB_IMAGE}"
# image: "${WEB_IMAGE}"
command: gunicorn PathFinder.PathFinderBase.wsgi:application --bind 0.0.0.0:8001
volumes:
- .:/pathfinderapp
- static_volume:/PathFinder/static
#- media_volume:/PathFinder/media
ports:
- "8001:8001"
# env_file:
# - ./.env.staging
expose:
- "8001"
depends_on:
- pathfinderdb
# nginx-proxy:
# container_name: nginx-proxy
# hostname: nginx-proxy
# build:
# context: .
# dockerfile: ./nginx/Dockerfile-nginx
# restart: always
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - /etc/nginx/:/etc/nginx
# - static_volume:/PathFinder/static
# #- html:/usr/share/nginx/html
# #- vhost:/etc/nginx/vhost.d
# #- /var/run/docker.sock:/tmp/docker.sock:ro
# depends_on:
# - pathfinderapp
# #- media_volume:/app/media
# # cache_from:
# # - "${NGINX_IMAGE}"
pathfinderdb:
container_name: pathfinderdb
image: postgres:14.7
volumes:
- pathfinderdb_data:/var/lib/postgresql/data
environment:
- SECRET_KEY=SuperSecretDevKey
#- DEBUG=1
#- DB_HOST=localhost
- DB_NAME=pathfinderdb
- DB_USER=pathfinderdbsu
- DB_PASSWORD=pa$$wordFinder
ports:
- 0.0.0.0:5433:5433
volumes:
pathfinderdb_data:
static_volume:
certs:
html:
#vhost:
#acme:
# pathfinderdb:
# image: postgres:14.0-alpine
# environment:
# - POSTGRES_DB=pathfinderdb
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=SuperSecretDevPassword