-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- build time optimize
- Loading branch information
Jaejun Kim
committed
Sep 17, 2023
1 parent
e0a7264
commit fa170d3
Showing
4 changed files
with
6,078 additions
and
5,996 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,78 @@ | ||
version: "3" | ||
version: '3' | ||
|
||
services: | ||
next: | ||
container_name: next | ||
build: ./services/next | ||
image: next:ts | ||
volumes: | ||
- next:/usr/app/srcs | ||
networks: | ||
- my_network | ||
env_file: | ||
- ./.env | ||
ports: | ||
- "4242:4242" | ||
restart: always | ||
depends_on: | ||
- nest | ||
- postgresql | ||
next: | ||
container_name: next | ||
build: ./services/next | ||
image: next:ts | ||
volumes: | ||
- next:/usr/app/srcs | ||
networks: | ||
- my_network | ||
# env_file: | ||
# - ./.env | ||
ports: | ||
- '4242:4242' | ||
restart: always | ||
# depends_on: | ||
# - nest | ||
# - postgresql | ||
|
||
nest: | ||
container_name: nest | ||
build: ./services/nest | ||
image: nest:ts | ||
volumes: | ||
- nest:/usr/app/srcs | ||
networks: | ||
- my_network | ||
env_file: | ||
- ./.env | ||
ports: | ||
- "3000:3000" | ||
restart: always | ||
depends_on: | ||
- postgresql | ||
|
||
postgresql: | ||
container_name: postgresql | ||
build: | ||
context: ./services/postgresql | ||
args: | ||
- DB_NAME=${DB_NAME} | ||
- POSTGRES_USER_ID=${POSTGRES_USER_ID} | ||
- POSTGRES_USER_PASSWORD=${POSTGRES_USER_PASSWORD} | ||
image: db:ts | ||
expose: | ||
- "5432" | ||
volumes: | ||
- db:/var/lib/postgresql/data | ||
environment: | ||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} | ||
networks: | ||
- my_network | ||
restart: always | ||
# nest: | ||
# container_name: nest | ||
# build: ./services/nest | ||
# image: nest:ts | ||
# volumes: | ||
# - nest:/usr/app/srcs | ||
# networks: | ||
# - my_network | ||
# env_file: | ||
# - ./.env | ||
# ports: | ||
# - '3000:3000' | ||
# restart: always | ||
# depends_on: | ||
# - postgresql | ||
|
||
# postgresql: | ||
# container_name: postgresql | ||
# build: | ||
# context: ./services/postgresql | ||
# args: | ||
# - DB_NAME=${DB_NAME} | ||
# - POSTGRES_USER_ID=${POSTGRES_USER_ID} | ||
# - POSTGRES_USER_PASSWORD=${POSTGRES_USER_PASSWORD} | ||
# image: db:ts | ||
# expose: | ||
# - '5432' | ||
# volumes: | ||
# - db:/var/lib/postgresql/data | ||
# environment: | ||
# - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} | ||
# networks: | ||
# - my_network | ||
# restart: always | ||
|
||
volumes: | ||
next: | ||
driver: local | ||
driver_opts: | ||
type: none | ||
o: bind | ||
device: '${PWD}/srcs/next' | ||
nest: | ||
driver: local | ||
driver_opts: | ||
type: none | ||
o: bind | ||
device: '${PWD}/srcs/nest' | ||
db: | ||
driver: local | ||
driver_opts: | ||
type: none | ||
o: bind | ||
device: '${PWD}/srcs/postgresql' | ||
next: | ||
driver: local | ||
driver_opts: | ||
type: none | ||
o: bind | ||
device: '${PWD}/srcs/next' | ||
# nest: | ||
# driver: local | ||
# driver_opts: | ||
# type: none | ||
# o: bind | ||
# device: '${PWD}/srcs/nest' | ||
# db: | ||
# driver: local | ||
# driver_opts: | ||
# type: none | ||
# o: bind | ||
# device: '${PWD}/srcs/postgresql' | ||
|
||
networks: | ||
my_network: | ||
driver: bridge | ||
my_network: | ||
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.