mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
595 B
28 lines
595 B
server:
|
|
image: nginx:latest
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./config/nginx:/etc/nginx/conf.d
|
|
volumes_from:
|
|
- web
|
|
links:
|
|
- web
|
|
sapldb:
|
|
image: postgres
|
|
environment:
|
|
POSTGRES_PASSWORD: sapl
|
|
POSTGRES_USER: sapl
|
|
POSTGRES_DB: sapl
|
|
PGDATA : /var/lib/postgresql/data/
|
|
volumes:
|
|
- ./postgres-data/data/:/var/lib/postgresql/data/
|
|
ports:
|
|
- "5532:5432"
|
|
web:
|
|
build: .
|
|
command: /bin/sh -c "/bin/sh busy-wait.sh && python3 manage.py bower install && python3 manage.py migrate && /bin/sh gunicorn_start.sh"
|
|
volumes:
|
|
- .:/sapl
|
|
links:
|
|
- sapldb
|
|
|