services: bottin-db: image: 'postgres:16' environment: POSTGRES_USER: '${BOTTIN_SERVER_API_POSTGRES_USER:?Add to .env}' POSTGRES_PASSWORD: '${BOTTIN_SERVER_API_POSTGRES_PASSWORD:?Add to .env}' POSTGRES_DATABASE: '${BOTTIN_SERVER_API_POSTGRES_DATABASE:?Add to .env}' volumes: - 'bottin-db-data:/var/lib/postgresql/data' restart: 'unless-stopped' bottin-api: depends_on: - 'bottin-db' image: 'git.agecem.com/bottin/bottin:latest' env_file: '.env' restart: 'unless-stopped' command: ['bottin', 'server', 'api'] presences-db: image: 'docker.io/library/postgres:16' environment: POSTGRES_DATABASE: "${PRESENCES_DB_DATABASE:?}" POSTGRES_PASSWORD: "${PRESENCES_DB_PASSWORD:?}" POSTGRES_USER: "${PRESENCES_DB_USERNAME:?}" volumes: - 'presences-db-data:/var/lib/postgresql/data' restart: 'unless-stopped' presences-ui: depends_on: - 'presences-db' - 'bottin-api' build: '.' image: 'git.agecem.com/agecem/presences:latest' env_file: '.env' ports: - '8080:8080' volumes: - 'presences-config:/etc/presences/' restart: 'unless-stopped' command: ['presences', '--config', '/etc/presences/config.yaml', 'server'] adminer: depends_on: - 'bottin-db' - 'presences-db' image: 'adminer:latest' ports: - '8088:8080' restart: 'unless-stopped' volumes: bottin-db-data: presences-config: presences-db-data: