-
-
Save kjanshair/8adef2ab6a1d253d48ad45ccacb9b661 to your computer and use it in GitHub Desktop.
docker-compose file for containerized apps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KEY=VALUE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
traefik: | |
image: traefik:latest # Traefik 2.0 | |
container_name: traefik | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock:ro" | |
working_dir: /app | |
ports: | |
- "80:80" | |
- "8080:8080" | |
command: --api.insecure=true --providers.docker | |
networks: | |
- isolated_network | |
portainer: | |
image: portainer/portainer:latest | |
container_name: portainer | |
ports: | |
- "9000:9000" | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock" | |
- "./portainer:/data" | |
networks: | |
- isolated_network | |
healthcheck: | |
image: kjanshair/healthcheck:latest | |
container_name: healthcheck | |
environment: | |
- ENDPOINT=/health | |
- PORT=80 | |
networks: | |
- isolated_network | |
labels: | |
- "traefik.http.routers.health.rule=PathPrefix(`/health`)" | |
- "traefik.http.services.health.loadbalancer.server.port=80" | |
networks: | |
isolated_network: | |
external: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
nginx: | |
image: nginx | |
container_name: nginx | |
# volumes: | |
# - "./app:/var/www/html" | |
# working_dir: /app | |
# command: ls | |
# mem_limit: 1500m | |
networks: | |
- isolated_network | |
environment: | |
- KEY=VALUE | |
# env_file: | |
# - ./.env | |
# labels: | |
# - "traefik.http.routers.nginx.rule=PathPrefix(`/`)" | |
# - "traefik.http.services.nginx.loadbalancer.server.port=80" | |
logging: | |
options: | |
max-size: 50m | |
networks: | |
isolated_network: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment