-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
45 lines (44 loc) · 1.18 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
version: "3"
services:
proxy:
restart: on-failure
image: nginx
volumes:
- ./conf/nginx.conf:/etc/nginx/conf.d/default.conf
- static_volume:/static
ports:
- 80:80
depends_on:
- app
app:
env_file: ./.env
build:
context: ./app
args:
- API_URL=${APPLICATION_API_URL}
- SITE_URL_DOMAIN=${LP_SITE_URL_DOMAIN}
- SITE_URL_PROTOCOL=${LP_SITE_URL_PROTOCOL}
restart: always
environment:
- API_URL=${APPLICATION_API_URL}
- SITE_URL_DOMAIN=${LP_SITE_URL_DOMAIN}
- SITE_URL_PROTOCOL=${LP_SITE_URL_PROTOCOL}
- APPLICATION_DATABASE_PASSWORD=${APPLICATION_DATABASE_PASSWORD}
- APPLICATION_DATABASE_HOST=db
- APPLICATION_ALLOWED_HOSTS=${APPLICATION_ALLOWED_HOSTS}
- APPLICATION_SECRET_KEY=${APPLICATION_SECRET_KEY}
- APPLICATION_CORS_ALLOWED_ORIGINS=${APPLICATION_CORS_ALLOWED_ORIGINS}
volumes:
- static_volume:/static
depends_on:
- db
db:
image: postgres
volumes:
- db-volume:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=${APPLICATION_DATABASE_PASSWORD}
restart: unless-stopped
volumes:
static_volume:
db-volume: