38 lines
No EOL
778 B
Text
38 lines
No EOL
778 B
Text
services:
|
|
app:
|
|
build:
|
|
context: ${CTX_BUILD}
|
|
dockerfile: ${IMAGE_PATH}
|
|
image: ${APP_IMAGE}:${ENVIRONMENT}
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${APP_PORT}:80"
|
|
volumes:
|
|
- ${CTX_APP}:${APP_PATH}
|
|
- ${CTX_APACHE_LOGS}:/var/log/apache2
|
|
- ${CTX_APACHE_VHOSTS}:/etc/apache2/sites-enabled
|
|
- ${CTX_APACHE_CERTS}:/usr/local/share/ca-certificates/custom:ro
|
|
labels:
|
|
${TRAEFIK_LABELS}
|
|
depends_on:
|
|
- db
|
|
networks:
|
|
- app-network
|
|
- proxy
|
|
|
|
db:
|
|
image: ${DB_IMAGE}
|
|
restart: unless-stopped
|
|
environment:
|
|
${DB_ENVIRONMENT}
|
|
volumes:
|
|
${DB_VOLUMES}
|
|
ports:
|
|
- "${DB_STACK_PORT}"
|
|
networks:
|
|
- app-network
|
|
|
|
networks:
|
|
app-network:
|
|
proxy:
|
|
external: true |