Skip to content

Instantly share code, notes, and snippets.

@Haguilar91
Created January 30, 2020 19:11
Show Gist options
  • Save Haguilar91/91057d19bf017581f5dee95d83bffd7d to your computer and use it in GitHub Desktop.
Save Haguilar91/91057d19bf017581f5dee95d83bffd7d to your computer and use it in GitHub Desktop.
Compose
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