-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (57 loc) · 1.9 KB
/
docker-compose.yml
File metadata and controls
60 lines (57 loc) · 1.9 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
version: '3.9'
services:
workoutchallenge:
container_name: workoutchallenge
build: .
ports:
- "80:80"
- "5555:5555" # Celery Flower task monitoring - do not open to public - only for local network for debugging
- "9001:9001" # Supervisord process monitoring - do not open to public - only for local network for debugging
- "8000:8000" # Django admin space - do not open to public - only for local network for debugging
volumes:
- django_data:/workout_challenge/src-backend/data
environment:
- POSTGRES_HOST=workoutchallenge-database
- POSTGRES_DB=workoutchallenge
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- MAIN_HOST=http://your-url.com
- HOSTS=http://your-url.com,http://localhost,http://127.0.0.1
- SECRET_KEY=<your_random_string_for_encryption>
- TIME_ZONE=Europe/London
- STRAVA_CLIENT_ID=000000
- STRAVA_CLIENT_SECRET=<secret_key>
- REACT_APP_SENTRY_DSN=https://<PUBLIC_KEY>@<HOST>/<PROJECT_ID>
- EMAIL_HOST=smtp.gmail.com
- EMAIL_PORT=465
- EMAIL_HOST_USER=competition@yourdomain.com
- EMAIL_HOST_PASSWORD=password
- EMAIL_USE_SSL=True
- EMAIL_USE_TLS=False
- EMAIL_FROM=competition@yourdomain.com
- EMAIL_REPLY_TO=support@yourdomain.com
- OPENAI_API_KEY=<secret_key>
restart: unless-stopped
depends_on:
database:
condition: service_healthy
database:
image: postgres:15
container_name: workoutchallenge-database
environment:
- POSTGRES_DB=workoutchallenge
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data:
django_data: