forked from Infra/risotto
add docker environment
This commit is contained in:
@ -5,18 +5,24 @@ services:
|
||||
context: ../
|
||||
dockerfile: docker/Dockerfile
|
||||
volumes:
|
||||
- .:/srv/src/risotto
|
||||
- ../.:/srv/src/risotto
|
||||
ports:
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
- postgres
|
||||
links:
|
||||
- postgres
|
||||
#command: tail -F /var/log
|
||||
command: python /srv/src/risotto/script/server.py
|
||||
restart: unless-stopped
|
||||
postgres:
|
||||
image: postgres:11-alpine
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
|
||||
PGDATA: /data/postgres
|
||||
volumes:
|
||||
- ./postgres-init:/srv/src/postgres
|
||||
- ./postgres-init/:/docker-entrypoint-initdb.d/
|
||||
ports:
|
||||
- "5432:5432"
|
||||
restart: unless-stopped
|
Reference in New Issue
Block a user