lasthourcloud/docker-compose.dev.yml

67 lines
1.6 KiB
YAML
Raw Normal View History

2023-04-12 19:23:32 +00:00
version: '3.8'
2023-05-10 07:26:25 +00:00
x-testing-host:
&testing-host-base
2023-04-12 19:23:32 +00:00
image: coolify-testing-host
build:
dockerfile: Dockerfile
context: ./docker/testing-host
networks:
- coolify
services:
coolify:
build:
context: .
dockerfile: ./docker/dev-ssu/Dockerfile
ports:
- "${APP_PORT:-8000}:80"
environment:
PUID: "${USERID:-1000}"
PGID: "${GROUPID:-1000}"
SSL_MODE: "off"
AUTORUN_LARAVEL_STORAGE_LINK: "false"
AUTORUN_LARAVEL_MIGRATION: "false"
env_file:
- .env
volumes:
- .:/var/www/html/:cached
postgres:
ports:
- "${FORWARD_DB_PORT:-5432}:5432"
env_file:
- .env
environment:
POSTGRES_USER: "${DB_USERNAME}"
POSTGRES_PASSWORD: "${DB_PASSWORD}"
POSTGRES_DB: "${DB_DATABASE}"
POSTGRES_HOST_AUTH_METHOD: "trust"
volumes:
- ./_volumes/database/:/var/lib/postgresql/data
2023-05-10 07:26:25 +00:00
redis:
ports:
- "${FORWARD_REDIS_PORT:-6379}:6379"
env_file:
- .env
volumes:
- ./_volumes/redis/:/data
2023-04-12 19:23:32 +00:00
vite:
image: node:19
working_dir: /var/www/html
2023-04-12 19:53:09 +00:00
ports:
- "${VITE_PORT:-5173}:${VITE_PORT:-5173}"
2023-04-12 19:23:32 +00:00
volumes:
- .:/var/www/html:cached
command: sh -c "npm install && npm run dev"
testing-host:
2023-05-10 07:26:25 +00:00
<<: *testing-host-base
container_name: coolify-testing-host
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2023-05-03 12:05:31 +00:00
testing-host-2:
2023-05-10 07:26:25 +00:00
<<: *testing-host-base
container_name: coolify-testing-host-2
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- "./_testing_hosts/host_2_proxy:/root/projects/proxy"