Initial commit: LACA parking management system
This commit is contained in:
40
backend/deploy/storage/docker-compose.yaml
Normal file
40
backend/deploy/storage/docker-compose.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
version: '3.8'
|
||||
|
||||
x-logging: &logging
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-file: "5"
|
||||
max-size: "10m"
|
||||
|
||||
x-network: &network
|
||||
network_mode: "host"
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:13.5
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=${DB_USER}
|
||||
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||
volumes:
|
||||
- postgres:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5432:5432"
|
||||
<<: [ *logging ]
|
||||
|
||||
redis:
|
||||
hostname: redis
|
||||
container_name: redis
|
||||
image: redis:6.2.11-alpine
|
||||
volumes:
|
||||
- redis-data:/data
|
||||
command: >
|
||||
--requirepass ${REDIS_PASSWORD}
|
||||
ports:
|
||||
- "6379:6379"
|
||||
<<: [ *logging ]
|
||||
|
||||
volumes:
|
||||
postgres:
|
||||
redis-data:
|
||||
Reference in New Issue
Block a user