Files
old-new-wiaas/docker-compose.yml

44 lines
827 B
YAML
Raw Normal View History

2018-06-14 16:49:28 +02:00
version : '2'
services:
backend:
2018-06-14 16:49:28 +02:00
build:
context: .
dockerfile: backend.dockerfile
2018-06-14 16:49:28 +02:00
volumes:
- ./log/backend/:/var/log/apache2/
2018-06-14 16:49:28 +02:00
ports:
- '8081:80'
- '8082:443'
2018-06-14 16:49:28 +02:00
depends_on:
- db
#use links keywoard to use db as a known host "db" to connect to database
links:
- db
frontend:
build:
context: .
dockerfile: frontend.dockerfile
args:
- REACT_APP_TEST_URL
- REACT_APP_PROD_URL
- REACT_APP_DEV_URL
2018-06-19 03:37:25 +00:00
volumes:
- ./log/frontend/:/var/log/apache2/
ports:
- '8080:80'
2018-06-14 16:49:28 +02:00
db:
build:
context: .
dockerfile: mysql.dockerfile
args:
- API_URL
- MYSQL_ROOT_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
2018-06-14 16:49:28 +02:00
ports:
- '23306:3306'