coolify/docker-compose.dev.yml

81 lines
2.0 KiB
YAML
Raw Normal View History

2023-04-12 21:23:32 +02:00
version: '3.8'
2023-05-10 09:26:25 +02:00
x-testing-host:
&testing-host-base
2023-04-12 21:23:32 +02:00
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"
volumes:
- .:/var/www/html/:cached
postgres:
ports:
- "${FORWARD_DB_PORT:-5432}:5432"
env_file:
- .env
environment:
2023-06-23 11:48:28 +02:00
POSTGRES_USER: "${DB_USERNAME:-coolify}"
POSTGRES_PASSWORD: "${DB_PASSWORD:-password}"
POSTGRES_DB: "${DB_DATABASE:-coolify}"
2023-04-12 21:23:32 +02:00
POSTGRES_HOST_AUTH_METHOD: "trust"
volumes:
2023-05-15 15:13:34 +02:00
- ./_data/_volumes/database/:/var/lib/postgresql/data
2023-05-10 09:26:25 +02:00
redis:
ports:
- "${FORWARD_REDIS_PORT:-6379}:6379"
env_file:
- .env
volumes:
2023-05-15 15:13:34 +02:00
- ./_data/_volumes/redis/:/data
2023-04-12 21:23:32 +02:00
vite:
image: node:19
working_dir: /var/www/html
2023-04-12 21:53:09 +02:00
ports:
- "${VITE_PORT:-5173}:${VITE_PORT:-5173}"
2023-04-12 21:23:32 +02:00
volumes:
- .:/var/www/html:cached
command: sh -c "npm install && npm run dev"
testing-host:
2023-05-10 09:26:25 +02:00
<<: *testing-host-base
container_name: coolify-testing-host
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2023-05-15 15:13:34 +02:00
- "./_data/coolify/proxy/testing-host-1:/data/coolify/proxy"
2023-05-03 14:05:31 +02:00
testing-host-2:
2023-05-10 09:26:25 +02:00
<<: *testing-host-base
container_name: coolify-testing-host-2
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2023-05-15 15:13:34 +02:00
- "./_data/coolify/proxy/testing-host-2:/data/coolify/proxy"
mailpit:
image: 'axllent/mailpit:latest'
2023-06-01 12:15:33 +02:00
container_name: coolify-mail
ports:
- '${FORWARD_MAILPIT_PORT:-1025}:1025'
- '${FORWARD_MAILPIT_DASHBOARD_PORT:-8025}:8025'
2023-06-01 12:15:33 +02:00
networks:
- coolify
2023-05-30 16:43:48 +02:00
buggregator:
image: ghcr.io/buggregator/server:latest
container_name: coolify-debug
ports:
2023-06-01 12:15:33 +02:00
- 8001:8000
networks:
- coolify