Skip to content

Commit

Permalink
๐Ÿ› docker-compose.yml ์„œ๋น„์Šค ๋ถ„๋ฆฌ
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoorich committed Jan 21, 2025
1 parent 1f4a2dc commit a54c090
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
**/*.dbmdl
**/*.jfm
**/charts
**/docker-compose*
docker/app/docker-compose.yml
**/compose*
**/target
**/Dockerfile*
Expand Down
22 changes: 22 additions & 0 deletions docker/app/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
services:
backend:
image: jhungminwoo/${DOCKER_IMAGE_NAME}:latest
container_name: ${DOCKER_CONTAINER_NAME}
ports:
- 8080:8080
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:${DB_PORT}/${DB_NAME}
SPRING_DATASOURCE_USERNAME: ${DB_USER}
SPRING_DATASOURCE_PASSWORD: ${DB_PASSWORD}
SPRING_PROFILES_ACTIVE: dev
TZ: Asia/Seoul # ํƒ€์ž„์กด ์„ค์ •
depends_on:
- postgres
networks:
- moongch-network
restart: on-failure

networks:
moongch-network:
driver: bridge
external: true
29 changes: 12 additions & 17 deletions docker/docker-compose.yml โ†’ docker/infra/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
services:
backend:
image: jhungminwoo/${DOCKER_IMAGE_NAME}:latest
container_name: ${DOCKER_CONTAINER_NAME}
ports:
- 8080:8080
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:${DB_PORT}/${DB_NAME}
SPRING_DATASOURCE_USERNAME: ${DB_USER}
SPRING_DATASOURCE_PASSWORD: ${DB_PASSWORD}
SPRING_PROFILES_ACTIVE: dev
TZ: Asia/Seoul # ํƒ€์ž„์กด ์„ค์ •
depends_on:
- postgres
networks:
- moongch-network
restart: on-failure

nginx_ui:
image: jc21/nginx-proxy-manager:latest
container_name: nginx_manager
Expand Down Expand Up @@ -45,6 +28,18 @@ services:
networks:
- moongch-network

pgadmin:
image: dpage/pgadmin4
restart: always
container_name: pgadmin4
ports:
- 5050:5050
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: password
volumes:
- /home/ubuntu/db/pgadmin:/var/lib/pgadmin

networks:
moongch-network:
driver: bridge
Expand Down

0 comments on commit a54c090

Please sign in to comment.