Initial commit
This commit is contained in:
62
selfhosted_db/docker-compose.yaml
Normal file
62
selfhosted_db/docker-compose.yaml
Normal file
@@ -0,0 +1,62 @@
|
||||
version: '3.6'
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:13
|
||||
container_name: self_postgres
|
||||
volumes:
|
||||
- data_postgres:/var/lib/postgresql/data
|
||||
expose:
|
||||
- 5432
|
||||
networks:
|
||||
internal_traffic:
|
||||
ipv4_address: 192.168.3.41
|
||||
|
||||
# deploy:
|
||||
# resources:
|
||||
# limits:
|
||||
# cpus: '0.50'
|
||||
# memory: 1024M
|
||||
|
||||
restart: unless-stopped
|
||||
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_DB=${POSTGRES_DATABASE}
|
||||
|
||||
adminer:
|
||||
image: ghcr.io/shyim/adminerevo:latest
|
||||
hostname: self_adminer
|
||||
container_name: self_adminer
|
||||
restart: always
|
||||
networks:
|
||||
internal_traffic:
|
||||
ipv4_address: 192.168.3.47
|
||||
environment:
|
||||
- AMINER_PLUGINS='tables-filter tinymce'
|
||||
|
||||
mysql:
|
||||
image: mysql:8.4
|
||||
hostname: self_mysql
|
||||
container_name: self_mysql
|
||||
networks:
|
||||
internal_traffic:
|
||||
ipv4_address: 192.168.3.42
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
volumes:
|
||||
- data_mysql:/var/lib/mysql
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.50'
|
||||
memory: 512M
|
||||
volumes:
|
||||
data_postgres:
|
||||
external: true
|
||||
data_mysql:
|
||||
external: true
|
||||
|
||||
networks:
|
||||
internal_traffic:
|
||||
external: true
|
||||
Reference in New Issue
Block a user