2024-04-20 15:29:49 +02:00
|
|
|
version: "3.4"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgres:
|
|
|
|
|
|
|
|
services:
|
|
|
|
server:
|
|
|
|
environment:
|
2024-05-02 22:55:09 +02:00
|
|
|
SEMAPHORE_DB_DIALECT: postgres
|
|
|
|
SEMAPHORE_DB_HOST: db
|
|
|
|
SEMAPHORE_DB_PORT: 5432
|
|
|
|
SEMAPHORE_DB_USER: ${POSTGRES_USERNAME:-semaphore}
|
|
|
|
SEMAPHORE_DB_PASS: ${POSTGRES_PASSWORD:-semaphore}
|
|
|
|
SEMAPHORE_DB: ${POSTGRES_DATABASE:-semaphore}
|
2024-04-20 15:29:49 +02:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:14.3
|
|
|
|
restart: always
|
|
|
|
environment:
|
2024-05-02 22:55:09 +02:00
|
|
|
POSTGRES_USER: ${POSTGRES_USERNAME:-semaphore}
|
|
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-semaphore}
|
|
|
|
POSTGRES_DB: ${POSTGRES_DATABASE:-semaphore}
|
2024-04-20 15:29:49 +02:00
|
|
|
volumes:
|
|
|
|
- postgres:/var/lib/postgresql
|