-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.override.yml
64 lines (58 loc) · 1.22 KB
/
docker-compose.override.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
# Development Environment
version: '3.3'
services:
api:
build:
args:
- PYTHON_ENV=dev
environment:
VIRTUAL_HOST: api.lvh.me
VIRTUAL_PORT: 8000
SECRET_KEY: secret_key
DEBUG: "True"
DATABASE_URL: postgis://postgres:postgres@db:5432/woaq
ENABLE_LOGGING_TO_FILE: "False"
DEFAULT_FILE_STORAGE: django.core.files.storage.FileSystemStorage
ports:
- 8000
volumes:
- ./api:/usr/src/app
- logs:/usr/src/app/logs
- static:/usr/src/app/public/static
depends_on:
- db
restart: always
stdin_open: true
tty: true
web:
build:
dockerfile: Dockerfile
environment:
VIRTUAL_HOST: lvh.me
VIRTUAL_PORT: 3000
CHOKIDAR_USEPOLLING: 'true'
ports:
- 3000:3000
volumes:
- ./web:/usr/src/app:rw
- '/usr/src/app/node_modules'
db:
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=woaq
volumes:
- postgres:/var/lib/postgresql/data
ports:
- 5432
restart: always
proxy:
build:
args:
- API_DOMAIN=api.lvh.me
volumes:
- static:/var/www/html/static/
volumes:
logs:
postgres:
static: