Created
August 17, 2024 13:10
-
-
Save innoflash/3ebf4c7341cfb6d7ec76f8c1b3026cec to your computer and use it in GitHub Desktop.
Gotbot Assessment compose file
This file contains hidden or 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
services: | |
api: | |
container_name: gotbot-be | |
build: | |
context: ./gotbot-be | |
dockerfile: Dockerfile | |
# command: | |
# - bash | |
# - -c | |
# - php artisan migrate:fresh --seed && php artisan passport:client --personal --no-interaction && apache2-foreground | |
depends_on: | |
- database | |
volumes: | |
- ./gotbot-be/app:/var/www/html/app | |
- ./gotbot-be/bootstrap:/var/www/html/bootstrap | |
- ./gotbot-be/config:/var/www/html/config | |
- ./gotbot-be/database:/var/www/html/database | |
- ./gotbot-be/routes:/var/www/html/routes | |
- ./gotbot-be/storage:/var/www/html/storage | |
- ./gotbot-be/.env.example:/var/www/html/.env | |
ports: | |
- "8000:8000" | |
frontend: | |
container_name: gotbot-fe | |
build: | |
context: ./gotbot-fe | |
dockerfile: Dockerfile | |
#target: development used for development. | |
volumes: | |
- ./gotbot-fe/src:/app/src | |
- ./gotbot-fe/public:/app/public | |
- ./gotbot-fe/package.json:/app/package.json | |
- ./gotbot-fe/package-lock.json:/app/package-lock.json | |
ports: | |
#- "4200:4200" | |
- "4200:80" | |
depends_on: | |
- api | |
- database | |
database: | |
image: postgres | |
container_name: gotbot-chef-db | |
environment: | |
- POSTGRES_PASSWORD=P@55word!@# | |
- POSTGRES_USER=gotbot | |
- POSTGRES_DB=gotbot_chef | |
- POSTGRES_PORT=5432 | |
ports: | |
- "5432:5432" | |
volumes: | |
- ./.gotbot:/var/lib/postgresql/data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you clone the repos its important to clone em with their default folder names.
If you change for a reason known to you, please change the context parts of the compose file to point to your new directories