-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.production.yml
53 lines (49 loc) · 1.27 KB
/
docker-compose.production.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
version: '3.9'
services:
proxy:
container_name: voice-helper-proxy
build:
context: ./nginx
dockerfile: Dockerfile
restart: on-failure
ports:
- 80:80
- 443:443
volumes:
- ssl_data:/etc/resty-auto-ssl
environment:
ALLOWED_DOMAINS: "${ALLOWED_DOMAINS}"
SITES: "${ALLOWED_DOMAINS}=backend:8000"
backend:
container_name: voice-helper-server
build:
context: ./src
dockerfile: Dockerfile
environment:
SCHEDULE_API_URL: ${SCHEDULE_API_URL}
DATABASE_HOST: ${DATABASE_HOST}
DATABASE_NAME: ${DATABASE_NAME}
DATABASE_USER: ${DATABASE_USER}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
DATABASE_PORT: ${DATABASE_PORT}
VK_API_KEY: ${VK_API_KEY}
depends_on:
- database
restart: always
database:
container_name: voice-helper-database
image: postgres:12.2-alpine
environment:
POSTGRES_DB: ${DATABASE_NAME}
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "${DATABASE_PORT}:${DATABASE_PORT}"
volumes:
- voice-assistants-postgres-db:/var/lib/postgresql
restart: always
volumes:
voice-assistants-postgres-db:
ssl_data: