martin/docker-compose.yml
Andrey Bakhvalov 009e167c10 move martin
2018-10-08 14:03:04 +03:00

36 lines
733 B
YAML

version: '3.7'
services:
nginx:
image: nginx:alpine
restart: unless-stopped
depends_on:
- martin
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./src:/usr/share/nginx/html
ports:
- 80:80
martin:
image: urbica/martin
restart: unless-stopped
environment:
- DATABASE_URL=postgres://postgres@db/db
depends_on:
- db
db:
image: timescale/timescaledb-postgis
restart: unless-stopped
environment:
- POSTGRES_DB=db
- POSTGRES_USER=postgres
volumes:
- ./data:/data
- ./db:/var/lib/postgresql/data
- ./scripts:/scripts
- ./scripts/initdb.sql:/docker-entrypoint-initdb.d/initdb.sql
ports:
- 5432:5432