Browse Source

Format yml files

pull/2299/head
Thomas 2 years ago
parent
commit
fbcfd21d98
  1. 8
      docker/docker-compose.build.yml
  2. 7
      docker/docker-compose.dev.yml
  3. 8
      docker/docker-compose.yml

8
docker/docker-compose.build.yml

@ -7,16 +7,15 @@ services:
environment: environment:
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer
NODE_ENV: production NODE_ENV: production
REDIS_HOST: 'redis' REDIS_HOST: redis
REDIS_PASSWORD: ${REDIS_PASSWORD} REDIS_PASSWORD: ${REDIS_PASSWORD}
ports: ports:
- "3333:3333" - 3333:3333
depends_on: depends_on:
postgres: postgres:
condition: service_healthy condition: service_healthy
redis: redis:
condition: service_healthy condition: service_healthy
postgres: postgres:
image: postgres:12 image: postgres:12
env_file: env_file:
@ -28,9 +27,8 @@ services:
retries: 5 retries: 5
volumes: volumes:
- postgres:/var/lib/postgresql/data - postgres:/var/lib/postgresql/data
redis: redis:
image: 'redis:alpine' image: redis:alpine
healthcheck: healthcheck:
test: ['CMD-SHELL', 'redis-cli ping | grep PONG'] test: ['CMD-SHELL', 'redis-cli ping | grep PONG']
interval: 10s interval: 10s

7
docker/docker-compose.dev.yml

@ -7,16 +7,15 @@ services:
env_file: env_file:
- ../.env - ../.env
ports: ports:
- "5432:5432" - 5432:5432
volumes: volumes:
- postgres:/var/lib/postgresql/data - postgres:/var/lib/postgresql/data
redis: redis:
image: 'redis:alpine' image: redis:alpine
container_name: redis container_name: redis
restart: unless-stopped restart: unless-stopped
ports: ports:
- "6379:6379" - 6379:6379
volumes: volumes:
postgres: postgres:

8
docker/docker-compose.yml

@ -7,16 +7,15 @@ services:
environment: environment:
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?connect_timeout=300&sslmode=prefer
NODE_ENV: production NODE_ENV: production
REDIS_HOST: 'redis' REDIS_HOST: redis
REDIS_PASSWORD: ${REDIS_PASSWORD} REDIS_PASSWORD: ${REDIS_PASSWORD}
ports: ports:
- "3333:3333" - 3333:3333
depends_on: depends_on:
postgres: postgres:
condition: service_healthy condition: service_healthy
redis: redis:
condition: service_healthy condition: service_healthy
postgres: postgres:
image: postgres:12 image: postgres:12
env_file: env_file:
@ -28,9 +27,8 @@ services:
retries: 5 retries: 5
volumes: volumes:
- postgres:/var/lib/postgresql/data - postgres:/var/lib/postgresql/data
redis: redis:
image: 'redis:alpine' image: redis:alpine
healthcheck: healthcheck:
test: ['CMD-SHELL', 'redis-cli ping | grep PONG'] test: ['CMD-SHELL', 'redis-cli ping | grep PONG']
interval: 10s interval: 10s

Loading…
Cancel
Save