bottin/docker-compose.yaml
Victor Lacasse-Beaudoin 0bbf463674 chores!: bump postgres to 16.1
Existing databases will prevent this from booting. If you want to stay on
postgres 14, modify `docker-compose.yaml`'s `services.db.image`.

BREAKING: update postgres image major version from 14 to 16
2023-12-28 14:18:39 -05:00

49 lines
1 KiB
YAML

services:
db:
image: 'docker.io/library/postgres:16.1'
environment:
POSTGRES_DATABASE: "${BOTTIN_POSTGRES_DATABASE}"
POSTGRES_PASSWORD: "${BOTTIN_POSTGRES_PASSWORD}"
POSTGRES_USER: "${BOTTIN_POSTGRES_USER}"
volumes:
- 'db-data:/var/lib/postgresql/data'
restart: 'unless-stopped'
api:
depends_on:
- db
build: .
image: 'git.agecem.com/agecem/bottin:latest'
ports:
- '1312:1312'
volumes:
- 'api-config:/etc/bottin'
restart: 'unless-stopped'
command: ['bottin', '--config', '/etc/bottin/api.yaml', 'api']
web:
depends_on:
- api
build: .
image: 'git.agecem.com/agecem/bottin:latest'
ports:
- '2312:2312'
volumes:
- 'web-config:/etc/bottin'
restart: 'unless-stopped'
command: ['bottin', '--config', '/etc/bottin/web.yaml', 'web']
# adminer:
# image: adminer
# restart: always
# ports:
# - 8088:8080
# depends_on:
# - db
volumes:
db-data:
api-config:
web-config: