Browse Source

cicd: add stackname/container names to docker compose files

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
pull/4000/head
dw-0 10 months ago
committed by Thomas Kaul
parent
commit
a2587cfb33
  1. 4
      docker/docker-compose.build.yml
  2. 5
      docker/docker-compose.dev.yml
  3. 4
      docker/docker-compose.yml

4
docker/docker-compose.build.yml

@ -1,6 +1,8 @@
name: ghostfolio_build
services: services:
ghostfolio: ghostfolio:
build: ../ build: ../
container_name: gf-application-build
init: true init: true
env_file: env_file:
- ../.env - ../.env
@ -23,6 +25,7 @@ services:
postgres: postgres:
image: docker.io/library/postgres:15 image: docker.io/library/postgres:15
container_name: gf-postgres-build
env_file: env_file:
- ../.env - ../.env
healthcheck: healthcheck:
@ -35,6 +38,7 @@ services:
redis: redis:
image: docker.io/library/redis:alpine image: docker.io/library/redis:alpine
container_name: gf-redis-build
env_file: env_file:
- ../.env - ../.env
command: ['redis-server', '--requirepass', $REDIS_PASSWORD] command: ['redis-server', '--requirepass', $REDIS_PASSWORD]

5
docker/docker-compose.dev.yml

@ -1,7 +1,8 @@
name: ghostfolio_dev
services: services:
postgres: postgres:
image: docker.io/library/postgres:15 image: docker.io/library/postgres:15
container_name: postgres container_name: gf-postgres-dev
restart: unless-stopped restart: unless-stopped
env_file: env_file:
- ../.env - ../.env
@ -12,7 +13,7 @@ services:
redis: redis:
image: docker.io/library/redis:alpine image: docker.io/library/redis:alpine
container_name: redis container_name: gf-redis-dev
restart: unless-stopped restart: unless-stopped
env_file: env_file:
- ../.env - ../.env

4
docker/docker-compose.yml

@ -1,6 +1,8 @@
name: ghostfolio
services: services:
ghostfolio: ghostfolio:
image: docker.io/ghostfolio/ghostfolio:latest image: docker.io/ghostfolio/ghostfolio:latest
container_name: gf-application
init: true init: true
cap_drop: cap_drop:
- ALL - ALL
@ -27,6 +29,7 @@ services:
postgres: postgres:
image: docker.io/library/postgres:15 image: docker.io/library/postgres:15
container_name: gf-postgres
cap_drop: cap_drop:
- ALL - ALL
cap_add: cap_add:
@ -49,6 +52,7 @@ services:
redis: redis:
image: docker.io/library/redis:alpine image: docker.io/library/redis:alpine
container_name: gf-redis
user: '999:1000' user: '999:1000'
cap_drop: cap_drop:
- ALL - ALL

Loading…
Cancel
Save