Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
Toying with the idea of docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarvvski committed Oct 10, 2018
1 parent 538d29d commit ccd63c0
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
version: '2'

services:
db:
image: mariadb:10.1.26
container_name: r3_db
restart: always
environment:
MYSQL_USER: r3
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: r3
volumes:
- r3_db_data:/var/lib/mysql
ports:
- "3306:3306"

web:
depends_on:
- db
build:
context: .
dockerfile: web.docker
image: local/r3_web
container_name: r3_web
restart: always
environment:
VIRTUAL_HOST: r3.local
DB_HOST: r3_db
DB_USER: r3
DB_PASSWORD: password
DB_NAME: r3
ports:
- "8080:80"
volumes:
- ./dist:/var/www/html/

volumes:
r3_db_data:
dist:

0 comments on commit ccd63c0

Please sign in to comment.