-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
78 lines (75 loc) · 2.06 KB
/
docker-compose.yaml
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
version: '3'
services:
nginx:
container_name: bis-nginx
image: nginx:1.19.4-alpine
ports:
- ${APP_PORT}:80
- ${HTTPS_PORT}:443
volumes:
- ./nginx/nginx.conf:/etc/nginx/templates/default.conf.template
- ./logs:/app/logs
- ./frontend/build:/app/frontend
- ./backend/backend_static:/app/backend_static
- ./backend/media:/app/media
frontend:
container_name: bis-frontend
build: ./frontend
volumes:
- ./logs:/logs
- ./frontend:/app
environment:
HOST: frontend
APP_NAME: 'bis'
API_BASE: 'api/'
DEBUG: 0
REACT_APP_SENTRY_DSN: https://f3a6554a5b71437682e51b0410e20c64@o4504321204027392.ingest.sentry.io/4504453023924224
backend:
container_name: bis-backend
build:
context: ./backend
args:
APP_PORT: 8000
restart: always
links:
- postgres
depends_on:
- postgres
volumes:
- ./logs:/logs
- ./backend:/app
environment:
SECRET_KEY: ${SECRET_KEY}
SENTRY_DSN: https://00f28fbc60bd42468f7ca9818037daa5@o4504321204027392.ingest.sentry.io/4504452985192449
APP_HOST: backend
APP_PORT: 8000
DB_HOST: postgres
DB_PORT: 5432
DB_NAME: ${DB_NAME}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
EMAIL: '[email protected]'
EMAILS_ENABLED: 0
FULL_HOSTNAME: ${FULL_HOSTNAME}
DEBUG: 0
TEST: 0
ALLOWED_HOSTS: '*'
APP_NAME: 'bis'
API_BASE: 'api/'
ECOMAIL_API_KEY: ${ECOMAIL_API_KEY}
DARUJME_API_KEY: ${DARUJME_API_KEY}
DARUJME_SECRET: ${DARUJME_SECRET}
postgres:
container_name: bis-postgres
image: postgis/postgis:11-3.1-alpine
# image: postgres:14-alpine
volumes:
- ./postgresqldata:/var/lib/postgresql/data
ports:
- 127.0.0.1:5432:5432
environment:
POSTGRES_DATABASE: ${DB_NAME} # for postgres
POSTGRES_DB: ${DB_NAME} # for postgis
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_ROOT_PASSWORD: ${DB_PASSWORD}