59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
|
|
|
|
version: "3.9"
|
|
services:
|
|
web:
|
|
image: frontend
|
|
build: ../frontend
|
|
stdin_open: true # docker run -i
|
|
tty: true # docker run -t
|
|
ports:
|
|
- "3000:3000"
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
db:
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
image: postgres
|
|
volumes:
|
|
- ./data/db:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
- POSTGRES_DB=db_so_u_have_to_make_a_better_website_than_this_plus_change_the_pictures_that_s_ai_and_replace_them_with_real_ones_he_is_a_barber_and_i_m_making_him_a_website_his_ig__https___www_instagram_com_klip_hos_kawa__and_with_this_link_u_have_to_make_it_look_like_a_barberstyle_i_like_this_style_also_which_i_have_currently_and_i_want_from_you_to_make_it_look_like_claude_fable_5_and_make_like_animations_good_graphics_https___preview__kawa_cuts_showcase_lovable_app_
|
|
ports:
|
|
- "5432:5432"
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
backend:
|
|
image: backend
|
|
volumes:
|
|
- ./wait-for-it.sh:/usr/src/app/wait-for-it.sh
|
|
- ./start-backend.sh:/usr/src/app/start-backend.sh
|
|
build: ../backend
|
|
environment:
|
|
- DB_HOST=db
|
|
ports:
|
|
- "8080:8080"
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
depends_on:
|
|
- "db"
|
|
|
|
|
|
|
|
command: ["bash", "./wait-for-it.sh", "db:5432", "--timeout=0", "--strict", "--", "bash", "./start-backend.sh"]
|
|
|