initial commit
This commit is contained in:
55
docker/compose.dev.yml
Normal file
55
docker/compose.dev.yml
Normal file
@@ -0,0 +1,55 @@
|
||||
services:
|
||||
db:
|
||||
image: postgres:16-alpine
|
||||
restart: unless-stopped
|
||||
container_name: ${REPO_NAME_KEBAB}-db
|
||||
environment:
|
||||
POSTGRES_PASSWORD: $${DB_PASSWORD}
|
||||
POSTGRES_USER: $${DB_USER}
|
||||
POSTGRES_DB: $${DB_NAME}
|
||||
ports:
|
||||
- 127.0.0.1:5432:5432
|
||||
volumes:
|
||||
- ${REPO_NAME_SNAKE}_db_data:/var/lib/postgresql/data
|
||||
|
||||
# If you run ${REPO_NAME_PASCAL} in production, I recommend you to
|
||||
# not run PgAdmin with it.
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4:8
|
||||
restart: unless-stopped
|
||||
container_name: ${REPO_NAME_KEBAB}-pgadmin
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: admin@example.com
|
||||
PGADMIN_DEFAULT_PASSWORD: password
|
||||
# Disables sending emails. Disable it if you decide to run
|
||||
# PgAdmin in production
|
||||
PGADMIN_DISABLE_POSTFIX: true
|
||||
ports:
|
||||
- 127.0.0.1:8080:80
|
||||
volumes:
|
||||
- ${REPO_NAME_SNAKE}_pgadmin_data:/var/lib/pgadmin
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
# If you run ${REPO_NAME_PASCAL} in production, DO NOT use mailpit.
|
||||
# This tool is for testing only. Instead, you should use a real SMTP
|
||||
# provider, such as Mailgun, Mailwhale, or Postal.
|
||||
mailpit:
|
||||
image: axllent/mailpit:latest
|
||||
restart: unless-stopped
|
||||
container_name: ${REPO_NAME_KEBAB}-mailpit
|
||||
ports:
|
||||
- 127.0.0.1:8025:8025 # WebUI
|
||||
- 127.0.0.1:1025:1025 # SMTP
|
||||
volumes:
|
||||
- ${REPO_NAME_SNAKE}_mailpit:/data
|
||||
environment:
|
||||
MP_MAX_MESSAGES: 5000
|
||||
MP_DATABASE: /data/mailpit.db
|
||||
MP_SMTP_AUTH_ACCEPT_ANY: 1
|
||||
MP_SMTP_AUTH_ALLOW_INSECURE: 1
|
||||
|
||||
volumes:
|
||||
${REPO_NAME_SNAKE}_db_data:
|
||||
${REPO_NAME_SNAKE}_pgadmin_data:
|
||||
${REPO_NAME_SNAKE}_mailpit:
|
||||
Reference in New Issue
Block a user