Browse Source

Refactored SAPL docker-compose

pull/1063/head
Fábio Kaiser Rauber 8 years ago
parent
commit
8998ca2218
  1. 23
      docker-compose.yml

23
docker-compose.yml

@ -1,13 +1,3 @@
server:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./config/nginx:/etc/nginx/conf.d
- ./collected_static:/var/interlegis/sapl/collected_static
- ./media:/var/interlegis/sapl/media
volumes_from:
- web
sapldb: sapldb:
image: postgres image: postgres
environment: environment:
@ -16,16 +6,15 @@ sapldb:
POSTGRES_DB: sapl POSTGRES_DB: sapl
PGDATA : /var/lib/postgresql/data/ PGDATA : /var/lib/postgresql/data/
volumes: volumes:
- ./postgres-data/data/:/var/lib/postgresql/data/ - sapldb_data:/var/lib/postgresql/data/
- ./data:/data-import
ports: ports:
- "5532:5432" - "5532:5432"
web: sapl:
build: . build: .
volumes: volumes:
- .:/var/interlegis/sapl/ - sapl_data:/var/interlegis/sapl/data
- ./data:/var/interlegis/sapl/data - sapl_media:/var/interlegis/sapl/media
- ./media:/var/interlegis/sapl/media
- ./collected_static:/var/interlegis/sapl/collected_static
links: links:
- sapldb - sapldb
ports:
- "80:80"

Loading…
Cancel
Save