generated from QortexDevs/django-site-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
84 lines (75 loc) · 2.2 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
version: "3.8"
services:
db:
image: postgres
container_name: ryan-gosling-db
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ryan-gosling-database:/var/lib/postgresql/data
networks:
- ryan-gosling-networks
ryan-gosling-backend:
image: ryan-gosling-backend
build: ./app
container_name: ryan-gosling-backend
environment:
- DEBUG=True
- ALLOWED_HOSTS=*
- DATABASE_URL=postgres://postgres:postgres@db:5432/postgres
- SECRET_KEY="m#t7gx#ho3#ccj7(oo^09u5q(%r&nlcn^0e66ar_iisgn_%o*0"
- DJANGO_SETTINGS_MODULE=app.settings
- DJANGO_SUPERUSER_PASSWORD=password
- DJANGO_SUPERUSER_USERNAME=admin
- SENTRY_DSN=empty
- TELEGRAM_TOKEN=6978931415:AAEqJH7tInmV8cUjjpZ3blGKv2G3hLa8I84
- CHAD_GPT_TOKEN=chad-c43846755a0b4043806e15fb28a32f9cud52gu50
command:
- /bin/bash
- -c
- |
python manage.py collectstatic --noinput
python manage.py migrate
python manage.py createsuperuser --noinput
python manage.py runserver 0.0.0.0:8000
volumes:
- ./app:/code
ports:
- "8000:8000"
depends_on:
- db
networks:
- ryan-gosling-networks
ryan-gosling-bot:
image: ryan-gosling-backend
container_name: ryan-gosling-bot
environment:
- DEBUG=True
- ALLOWED_HOSTS=*
- DATABASE_URL=postgres://postgres:postgres@db:5432/postgres
- SECRET_KEY="m#t7gx#ho3#ccj7(oo^09u5q(%r&nlcn^0e66ar_iisgn_%o*0"
- DJANGO_SETTINGS_MODULE=app.settings
- DJANGO_SUPERUSER_PASSWORD=password
- DJANGO_SUPERUSER_USERNAME=admin
- SENTRY_DSN=empty
- TELEGRAM_TOKEN=6978931415:AAFbxPDrS96VSzNfiTt2xa4Kh21rUwLilq8
- CHAD_GPT_TOKEN=chad-cf641f157dcc4c40a431d7e40194d3f3744ht3ud
volumes:
- ./app:/code
command:
- /bin/bash
- -c
- |
python manage.py execute_tlg_bot
depends_on:
- ryan-gosling-backend
networks:
- ryan-gosling-networks
networks:
ryan-gosling-networks:
volumes:
ryan-gosling-database: