-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
39 lines (36 loc) · 836 Bytes
/
compose.yml
File metadata and controls
39 lines (36 loc) · 836 Bytes
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
services:
web:
build: .
container_name: strideapp_web
command: gunicorn myproject.wsgi:application --bind 0.0.0.0:8000
env_file:
- .env
volumes:
- .:/app
- static_volume:/app/staticfiles
depends_on:
- db
db:
image: postgres:17
container_name: strideapp_db
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
nginx:
image: nginx:latest
container_name: strideapp_nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./stridelens.conf:/etc/nginx/conf.d/default.conf
- static_volume:/app/staticfiles
depends_on:
- web
volumes:
postgres_data:
static_volume: