mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-11-24 04:21:14 +00:00
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
services:
|
|
|
|
app:
|
|
image: evershop/evershop:latest
|
|
container_name: evershop
|
|
restart: always
|
|
environment:
|
|
DB_HOST: database
|
|
DB_PORT: 5432
|
|
DB_PASSWORD: postgres
|
|
DB_USER: postgres
|
|
DB_NAME: postgres
|
|
depends_on:
|
|
- database
|
|
ports:
|
|
- 3000:3000
|
|
expose:
|
|
- 3000
|
|
#networks:
|
|
# - proxy
|
|
#labels:
|
|
# - traefik.enable=true
|
|
# - traefik.docker.network=proxy
|
|
# - traefik.http.routers.evershop.rule=Host(`shop.example.com`)
|
|
# - traefik.http.services.evershop.loadbalancer.server.port=3000
|
|
# # Part for optional traefik middlewares
|
|
# - traefik.http.routers.evershop.middlewares=local-ipwhitelist@file,authelia@docker
|
|
|
|
database:
|
|
image: postgres:16-alpine
|
|
container_name: evershop-db
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/evershop/psqldata:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_DB: postgres
|
|
expose:
|
|
- 5432
|
|
#networks:
|
|
# - proxy
|
|
|
|
#networks:
|
|
# proxy:
|
|
# external: true
|