Created
June 10, 2020 12:33
-
-
Save janhoy/35090b6de949b3411de5dc140da48fde to your computer and use it in GitHub Desktop.
Quepid docker-compose with AWS RDS
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
Index: docker-compose.prod.yml | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- docker-compose.prod.yml (revision 6d9f483b484d920e577a2ff1c4fe185067dcbe69) | |
+++ docker-compose.prod.yml (date 1591792329875) | |
@@ -1,18 +1,8 @@ | |
# Docker Compose file for running Quepid in Production mode. | |
# Allows you to update your Quepid installation over time. | |
-version: '3' | |
+version: '2' | |
services: | |
- mysql: | |
- container_name: quepid_prod_db | |
- image: mysql:5.6.37 | |
- ports: | |
- - 3306:3306 | |
- environment: | |
- - MYSQL_ROOT_PASSWORD=password | |
- volumes: | |
- - ./volumes/mysql_data:/var/lib/mysql | |
- | |
redis: | |
container_name: quepid_prod_redis | |
image: redis | |
@@ -21,17 +11,17 @@ | |
app: | |
container_name: quepid_prod_app | |
- image: o19s/quepid:latest | |
+ image: o19s/quepid:6.2-prerelease | |
environment: | |
- PORT=3000 | |
- RACK_ENV=production | |
- RAILS_ENV=production | |
- DB_ADAPTER=mysql2 | |
- - DB_HOST=mysql | |
- - DB_USERNAME=root | |
- - DB_PASSWORD=password | |
+ - DB_HOST=quepid.xxx.eu-west-1.rds.amazonaws.com | |
+ - DB_USERNAME=admin | |
+ - DB_PASSWORD=QuepidSolr20 | |
- DB_NAME=quepid | |
- - DATABASE_URL=mysql2://root:password@mysql:3306/quepid | |
+ - DATABASE_URL=mysql2://admin:QuepidSolr20@quepid.xxx.eu-west-1.rds.amazonaws.com:3306/quepid | |
- REDIS_URL=redis://redis:6379/1 | |
- FORCE_SSL=false | |
- MAX_THREADS=2 | |
@@ -44,10 +34,8 @@ | |
- DEFAULT_QUEPID_SCORER=AP@5 | |
command: "foreman s -f Procfile" | |
ports: | |
- - 80:3000 # Map to port 80 for outside users. | |
+ - 3000:3000 | |
links: | |
- - mysql | |
- redis | |
depends_on: | |
- - mysql | |
- - redis | |
+ - redis | |
\ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment