-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
112 lines (104 loc) · 2.42 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: '3'
services:
postgis:
image: mdillon/postgis:10
container_name: arpav_postgis
restart: unless-stopped
expose:
- 5432
environment:
POSTGRES_USER: '${POSTGRES_USER}'
PGPASSWORD: '${PGPASSWORD}'
POSTGRES_DB: '${POSTGRES_DB_NAME}'
volumes:
- pgdata:/var/lib/postgresql/data
redis:
container_name: arpav_redis
image: redis:4
restart: unless-stopped
expose:
- 6379
volumes:
- redisdata:/data
backend:
env_file: .env
container_name: backend.api
image: padoa_backend
build: .
command: ${API_COMMAND:-dev}
restart: unless-stopped
# user: ${UID:-1000}
environment:
GUNICORN_WORKERS: 15
GUNICORN_WORKER_TIMEOUT: 120
expose:
- 8000
# ports:
# - 8000:8000
depends_on:
- postgis
# - proxy
volumes:
- ./backend/djangoapp:/opt/api/app/djangoapp
- ./backend/padoa:/opt/api/app/padoa
- ./backend/storage:/opt/api/app/storage
- ./backend/resources:/opt/api/app/resources
- ./backend/templates:/opt/api/app/templates
- ./docker/backend/docker-entrypoint.sh:/opt/api/docker-entrypoint.sh
- .env:/opt/api/app/.env
martin:
image: 'maplibre/martin:v0.6'
container_name: martin
restart: unless-stopped
expose:
- 3000
# ports:
# - "3001:3000"
environment:
- DATABASE_URL=postgres://${POSTGRES_USER}:${PGPASSWORD}@postgis/${POSTGRES_DB_NAME}
- RUST_LOG=actix_web=info,martin=debug,tokio_postgres=debug
depends_on:
- postgis
proxy:
image: nginx
container_name: proxy
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ${SSL_CERTIFICATE}:/etc/ssl/cert.crt
- ${SSL_KEY}:/etc/ssl/private/cert.key
expose:
- 80
- 443
ports:
- 80:80
- 443:443
environment:
- NGINX_HOST=proxy
- NGINX_PORT=80
depends_on:
- backend
- thredds
- martin
thredds:
container_name: thredds
build:
context: ./thredds_helper
# ports:
# - "8089:8089"
expose:
- 8089
restart: always
environment:
- THREDDS_PASSWORD=${THREDDS_PASSWORD}
frontend:
container_name: frontend
image: ppcv_frontend:latest
build:
context: ./Arpav-PPCV
expose:
- 80
restart: always
volumes:
redisdata:
pgdata: