95 lines
1.9 KiB
YAML
Executable File
95 lines
1.9 KiB
YAML
Executable File
version: '3'
|
|
services:
|
|
db:
|
|
image: postgres:15-alpine
|
|
restart: unless-stopped
|
|
volumes:
|
|
- $DATA_DIR/db:/var/lib/postgresql/data
|
|
networks:
|
|
default:
|
|
ipv4_address: $NET.101
|
|
|
|
nextcloud:
|
|
image: nextcloud:28-fpm-alpine
|
|
volumes:
|
|
- $DATA_DIR/app:/var/www/html
|
|
depends_on:
|
|
- db
|
|
restart: unless-stopped
|
|
networks:
|
|
default:
|
|
ipv4_address: $NET.100
|
|
|
|
etherpad:
|
|
image: etherpad/etherpad
|
|
environment:
|
|
- DB_TYPE=postgres
|
|
- DB_HOST=db_etherpad
|
|
- DB_PORT=5432
|
|
- DB_NAME=etherpad
|
|
- DB_USER=etherpad
|
|
- DB_PASS=toDEzbjoTLBCugi9MrDMtVEPCLwcDeUJ6ofvqEWqmNEm7YvjNBHnKVa
|
|
restart: unless-stopped
|
|
networks:
|
|
default:
|
|
ipv4_address: $NET.104
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.50'
|
|
memory: 1000M
|
|
|
|
db_etherpad:
|
|
image: postgres:11-alpine
|
|
restart: unless-stopped
|
|
volumes:
|
|
- $DATA_DIR/db_etherpad:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_USER=etherpad
|
|
- POSTGRES_DB=etherpad
|
|
- POSTGRES_PASSWORD=toDEzbjoTLBCugi9MrDMtVEPCLwcDeUJ6ofvqEWqmNEm7YvjNBHnKVa
|
|
networks:
|
|
default:
|
|
ipv4_address: $NET.105
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.50'
|
|
memory: 1000M
|
|
|
|
ethercalc:
|
|
image: audreyt/ethercalc
|
|
environment:
|
|
REDIS_PORT_6379_TCP_ADDR: redis
|
|
REDIS_PORT_6379_TCP_PORT: 6379
|
|
restart: unless-stopped
|
|
networks:
|
|
default:
|
|
ipv4_address: $NET.102
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.50'
|
|
memory: 1000M
|
|
|
|
redis:
|
|
image: redis:latest
|
|
volumes:
|
|
- /var/lib/redis:/data
|
|
command: redis-server --appendonly yes
|
|
restart: unless-stopped
|
|
networks:
|
|
default:
|
|
ipv4_address: $NET.103
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.50'
|
|
memory: 2000M
|
|
|
|
networks:
|
|
default:
|
|
ipam:
|
|
config:
|
|
- subnet: $NET.0/24
|