-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 1.1 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
46
47
48
49
50
51
version: '3'
services:
dews:
image: dews:latest
container_name: dews
build:
context: .
working_dir: /app/dews
volumes:
# - ./dews/:/app/dews/ # ATTENTION: only in development - mirrors local files to container
- static:/dews/static # "static" is a Docker volume
- ./media:/dews/media # "media" is a Docker volume (TODO: remove "./" in production)
env_file:
- .env
ports:
- "8000:8000"
expose:
- "8000"
depends_on:
- dews-db
nginx:
container_name: dews-nginx
build: ./nginx
volumes:
- static:/static # "static" is a Docker volume
- media:/media # "media" is a Docker volume
ports:
- "80:80"
depends_on:
- dews
dews-db:
image: postgis/postgis:latest
container_name: dews-db
environment:
POSTGRES_DB: dews
POSTGRES_USER: dews
POSTGRES_PASSWORD: dews
PGDATA: /var/lib/postgresql/data/pgdat
ports:
- 5432:5432
volumes:
- ./db.sql:/docker-entrypoint-initdb.d/db.sql
- ./pgdata:/var/lib/postgresql/datar
volumes:
static:
media: