forked from PyAr/pyarweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (37 loc) · 1.06 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
version: '2'
volumes:
pgdata:
services:
postgres:
restart: always
image: postgres:11.5
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data/
environment:
- POSTGRES_PASSWORD=secret
web:
image: pyarweb
command: python3 manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "8000:8000"
links:
- postgres
depends_on:
- postgres
environment:
- DB_USER=postgres
- DB_NAME=postgres
- DB_PASS=secret
- DB_SERVICE=postgres
- DJANGO_SETTINGS_MODULE=pyarweb.settings.development
# These environment variables must be defined in a .env file or
# from the shell before starting the containers
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
- TELEGRAM_MODERATORS_CHAT_ID=${TELEGRAM_MODERATORS_CHAT_ID}
- TELEGRAM_PUBLIC_CHAT_ID=${TELEGRAM_PUBLIC_CHAT_ID}
- FACEBOOK_PAGE_ACCESS_TOKEN=${FACEBOOK_PAGE_ACCESS_TOKEN}
- FACEBOOK_PAGE_ID=${FACEBOOK_PAGE_ID}