mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
32 lines
549 B
YAML
32 lines
549 B
YAML
|
|
version: '3.5'
|
|
|
|
services:
|
|
db:
|
|
image: 'postgres:latest'
|
|
environment:
|
|
POSTGRES_PASSWORD: 12345
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_DB: gancio
|
|
volumes:
|
|
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
- ./postgres:/var/lib/postgresql/data
|
|
|
|
app:
|
|
build: .
|
|
ports:
|
|
- '12300:12300'
|
|
volumes:
|
|
- ./uploads:/usr/src/app/uploads
|
|
|
|
env_file: .env
|
|
environment:
|
|
PORT: 12300
|
|
DB_HOST: db
|
|
DB_PASS: 12345
|
|
DB_USER: postgres
|
|
DB_NAME: gancio
|
|
|
|
links:
|
|
- db
|
|
|