Initial commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
version: '3.9'
|
||||
|
||||
volumes:
|
||||
db:
|
||||
redis:
|
||||
|
||||
networks:
|
||||
internal:
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:17
|
||||
volumes:
|
||||
- db:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_DB=${POSTGRES_DB}
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASS}
|
||||
restart: always
|
||||
networks:
|
||||
- internal
|
||||
healthcheck:
|
||||
test: 'PGPASSWORD=${POSTGRES_PASS} pg_isready -h 127.0.0.1 -U ${POSTGRES_USER} -d ${POSTGRES_DB}'
|
||||
redis:
|
||||
image: redis:6.2-alpine
|
||||
networks:
|
||||
- internal
|
||||
restart: always
|
||||
command: redis-server --save 20 1 --loglevel warning --requirepass ${NUXT_REDIS_PASSWORD}
|
||||
healthcheck:
|
||||
test: redis-cli -a ${NUXT_REDIS_PASSWORD} ping || exit 1
|
||||
volumes:
|
||||
- redis:/data
|
||||
Reference in New Issue
Block a user