mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
Move docker examples to sub directory
This commit is contained in:
parent
809fca73a0
commit
ea07ea45b8
5 changed files with 0 additions and 0 deletions
56
examples/docker/docker-compose.postgres.yml
Normal file
56
examples/docker/docker-compose.postgres.yml
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
version: '2'
|
||||
services:
|
||||
snappymail:
|
||||
image: leojonathanoh/snappymail:pr-1
|
||||
ports:
|
||||
- 8888:8888
|
||||
environment:
|
||||
- DEBUG=true
|
||||
volumes:
|
||||
- snappymail:/var/lib/snappymail
|
||||
networks:
|
||||
- default
|
||||
- db-network
|
||||
- redis-network
|
||||
restart: unless-stopped
|
||||
|
||||
# This provides prometheus metrics for snappymail's php-fpm
|
||||
php-fpm-exporter:
|
||||
image: hipages/php-fpm_exporter:2.2.0
|
||||
ports:
|
||||
- 9253:9253
|
||||
environment:
|
||||
- PHP_FPM_SCRAPE_URI=tcp://snappymail:9000/status
|
||||
networks:
|
||||
- default
|
||||
|
||||
db:
|
||||
image: postgres:15-alpine
|
||||
environment:
|
||||
- POSTGRES_USER=snappymail
|
||||
- POSTGRES_PASSWORD=snappymail
|
||||
- POSTGRES_DB=snappymail
|
||||
volumes:
|
||||
- postgres:/var/lib/postgresql/data
|
||||
networks:
|
||||
- db-network
|
||||
restart: unless-stopped
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
networks:
|
||||
- redis-network
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
default:
|
||||
db-network:
|
||||
internal: true
|
||||
redis-network:
|
||||
internal: true
|
||||
|
||||
volumes:
|
||||
postgres:
|
||||
driver: local
|
||||
snappymail:
|
||||
driver: local
|
||||
Loading…
Add table
Add a link
Reference in a new issue