lasthourcloud/docker-compose.yaml

75 lines
1.8 KiB
YAML
Raw Normal View History

2022-02-10 14:47:44 +00:00
version: '3.8'
services:
2023-03-17 14:33:48 +00:00
php:
2023-03-20 21:17:28 +00:00
image: "coolify:${TAG:-4}"
2023-03-17 14:33:48 +00:00
build:
2023-03-20 12:04:22 +00:00
context: ./docker/dev
dockerfile: Dockerfile
args:
WWWGROUP: '${WWWGROUP}'
2022-02-10 14:47:44 +00:00
ports:
2023-03-17 14:33:48 +00:00
- "${APP_PORT:-8000}:80"
- "${VITE_PORT:-5173}:${VITE_PORT:-5173}"
environment:
WWWUSER: "${WWWUSER}"
LARAVEL_SAIL: 1
XDEBUG_MODE: "${SAIL_XDEBUG_MODE:-off}"
XDEBUG_CONFIG: "${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}"
2022-02-10 14:47:44 +00:00
volumes:
2023-03-18 17:59:37 +00:00
- .:/var/www/html
networks:
- coolify
2023-03-17 14:33:48 +00:00
postgres:
image: postgres:15-alpine
ports:
- "${FORWARD_DB_PORT:-5432}:5432"
2022-09-15 07:34:39 +00:00
volumes:
2023-03-17 14:33:48 +00:00
- db-coolify:/var/lib/postgresql/data
networks:
- coolify
2023-03-17 14:33:48 +00:00
environment:
POSTGRES_USER: "${DB_USERNAME}"
POSTGRES_PASSWORD: "${DB_PASSWORD}"
POSTGRES_DB: "${DB_DATABASE}"
POSTGRES_HOST_AUTH_METHOD: "trust"
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U $$DB_USERNAME",
"-d",
"db_prod"
]
retries: 3
timeout: 5s
testing-host:
container_name: coolify-testing-host
image: coolify-testing-host
build:
dockerfile: Dockerfile
context: ./docker/testing-host
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./docker/testing-host/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf
networks:
- coolify
testing-host2:
container_name: coolify-testing-host-2
image: coolify-testing-host
build:
dockerfile: Dockerfile
context: ./docker/testing-host
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./docker/testing-host/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf
networks:
- coolify
2023-03-18 17:59:37 +00:00
2022-02-10 14:47:44 +00:00
volumes:
2023-03-17 14:33:48 +00:00
db-coolify:
driver: local
networks:
coolify:
driver: bridge