Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add docker-compose.prod.yml for deployment #87

Merged
merged 1 commit into from
Jun 14, 2024
Merged

Conversation

Altonhe
Copy link
Member

@Altonhe Altonhe commented Jun 12, 2024

This Docker Compose file is designed to deploy the OBA server with Opentofu.

  • The file includes all the necessary environment variables, making it easier to inject them using a .env file. For more details, see the Docker documentation on setting environment variables.

  • It uses the prebuilt opentransitsoftwarefoundation/onebusaway-api-webapp:latest image, which saves build time, you can specify the version by setting the OBA_VERSION environment variable.

  • The labels on oba_app are configured to work with lucaslorentz/caddy-docker-proxy:ci-alpine, enabling automatic HTTPS setup. The image is not included here to avoid coupling, allowing users the flexibility to configure their own certificates.

volumes:
- type: volume
source: mysql-data
target: /var/lib/mysql
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what will happen to the mysql data between updates?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mysql data will not be affected, docker will still use mysql-data volume, it will be the same image with the same data, see https://docs.docker.com/storage/volumes/#use-a-volume-with-docker-compose

@Altonhe Altonhe marked this pull request as ready for review June 12, 2024 19:52
Copy link
Member

@aaronbrethorst aaronbrethorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤘🤘🤘

@aaronbrethorst aaronbrethorst merged commit 181ddd0 into main Jun 14, 2024
3 checks passed
@aaronbrethorst aaronbrethorst deleted the feat/docker branch June 14, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants