-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
43 lines (41 loc) · 1.23 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
version: '3.3'
services:
db:
container_name: postgis_3
image: postgis/postgis
command: ["postgres", "-c", "logging_collector=on", "-c", "log_directory=/var/log/postgresql/", "-c", "log_filename=postgresql.log", "-c", "log_statement=all"]
restart: always
env_file:
- ./server/scripts/docker/production/db.env
volumes:
- ./data/production/pgdata:/var/lib/postgresql/data
- ./data/production/db-backup:/db-backup
expose:
- "5432"
web:
build:
context: ./server
dockerfile: Dockerfile
depends_on:
- db
expose:
- "8000"
volumes:
- ./server:/code
command: "./docker-entrypoint.sh"
env_file:
- ./server/scripts/docker/production/pangea.env
links:
- db
nginx:
restart: always
build: ./nginx/
volumes:
- ./server/logs/:/code/logs
- ./server/media:/code/media_cdn
- ./server/static:/code/static_cdn
- ./cache:/cache
ports:
- "1337:80"
links:
- web