mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
26 lines
519 B
YAML
26 lines
519 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
|
|
optaweb:
|
|
image: vimagick/optaweb-employee-rostering
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- POSTGRES_DB=optaweb
|
|
- POSTGRES_USER=optaweb
|
|
- POSTGRES_PASSWORD=optaweb
|
|
depends_on:
|
|
- postgres
|
|
restart: unless-stopped
|
|
|
|
postgres:
|
|
image: postgres:12-alpine
|
|
volumes:
|
|
- ./data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_DB=optaweb
|
|
- POSTGRES_USER=optaweb
|
|
- POSTGRES_PASSWORD=optaweb
|
|
restart: unless-stopped
|