AppFlowy-Cloud/docker-compose-extras.yml
Kalitsune 366aa03a0e
feat: modernized the docker-compose file (#776)
This commit allows the port to be controlled using environment variables without having to edit the file which can be troublesome as this app is deployed as a git repo.

Additionaly this commits removes the `version` field which is now deprecated (read: https://docs.docker.com/reference/compose-file/version-and-name/#version-top-level-element-obsolete)
2024-09-04 19:15:35 +08:00

39 lines
925 B
YAML

# Non-essential additional services
services:
tunnel:
image: cloudflare/cloudflared
restart: unless-stopped
command: tunnel --no-autoupdate run
environment:
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
portainer:
restart: on-failure
image: portainer/portainer-ce:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
portainer_init:
depends_on:
- portainer
image: alpine/curl
restart: on-failure
environment:
- PORTAINER_PASSWORD=${PORTAINER_PASSWORD}
volumes:
- ./docker/portainer/setup.sh:/setup.sh
command: ./setup.sh
pgadmin:
restart: on-failure
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
volumes:
- ./docker/pgadmin/servers.json:/pgadmin4/servers.json
volumes:
postgres_data:
minio_data: