Skip to content

Commit

Permalink
Add "hs-tms" prefix to Docker Compose containers
Browse files Browse the repository at this point in the history
  • Loading branch information
nunogoncalves03 committed Feb 2, 2024
1 parent 1eb5bbd commit 387c60a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENVIRONMENT=dev
14 changes: 7 additions & 7 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3"
services:

postgres:
container_name: postgres
container_name: hs-tms_postgres
image: postgres:15
restart: always
volumes:
Expand All @@ -17,7 +17,7 @@ services:
- backend

postgres-demo:
container_name: postgres-demo
container_name: hs-tms_postgres-demo
image: postgres:15
restart: always
volumes:
Expand All @@ -31,7 +31,7 @@ services:
- backend

redis:
container_name: redis
container_name: hs-tms_redis
image: redis:7.2
restart: always
environment:
Expand All @@ -40,7 +40,7 @@ services:
- backend

backend:
container_name: backend
container_name: hs-tms_backend
build: ./backend
restart: always
depends_on:
Expand All @@ -56,7 +56,7 @@ services:
- caddy-backend

frontend:
container_name: frontend
container_name: hs-tms_frontend
build: ./frontend
restart: always
depends_on:
Expand All @@ -70,7 +70,7 @@ services:
- caddy-frontend

caddy:
container_name: caddy
container_name: hs-tms_caddy
image: caddy:2.7
restart: unless-stopped
cap_add:
Expand All @@ -79,7 +79,7 @@ services:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile.dev:/etc/caddy/Caddyfile
- ./Caddyfile.${ENVIRONMENT}:/etc/caddy/Caddyfile
- ./caddy_data:/data
- ./frontend/dist:/var/www
networks:
Expand Down

0 comments on commit 387c60a

Please sign in to comment.