Created
January 30, 2020 19:11
-
-
Save Haguilar91/91057d19bf017581f5dee95d83bffd7d to your computer and use it in GitHub Desktop.
Compose
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
version: '2' | |
networks: | |
chunchesnet: | |
services: | |
webserver: | |
image: "phusion/passenger-ruby26:latest" | |
depends_on: | |
- db1 | |
ports: | |
- 8080:8080 | |
networks: | |
chunchesnet: | |
aliases: | |
- websrv | |
volumes: | |
- webapp:~/chunchestest/webapp:/var/www/chunches/ | |
db1: | |
image: "mariadb:latest" | |
environment: | |
MYSQL_ROOT_PASSWORD: Honduras2019FTW | |
MYSQL_DATABASE: chunchesdb | |
MYSQL_USER: dbuser | |
MYSQL_PASSWORD: Honduras2019FTW | |
ports: | |
- 3309:3306 | |
expose: | |
- '3306' | |
networks: | |
chunchesnet: | |
aliases: | |
- dbsrv | |
restart: on-failure | |
volumes: | |
- ~/chunchestest/dbdata:/var/lib/mysql/ | |
elastic: | |
image: "elasticsearch:7.5.2" | |
networks: | |
chunchesnet: | |
aliases: | |
- searchsrv | |
volumes: | |
my-db: | |
webapp: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment