mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
version: '3'
|
|
|
|
networks:
|
|
exchange-staging:
|
|
|
|
services:
|
|
#################################################################
|
|
nginx:
|
|
image: nginx:stable-alpine
|
|
container_name: exchange-ngnix
|
|
ports:
|
|
- "8082:80"
|
|
volumes:
|
|
- ../:/var/www/html
|
|
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
|
|
depends_on:
|
|
- php
|
|
- mysql
|
|
networks:
|
|
- exchange-staging
|
|
#################################################################
|
|
mysql:
|
|
image: mysql:5.7.29
|
|
container_name: exchange-mysql
|
|
restart: unless-stopped
|
|
tty: true
|
|
ports:
|
|
- 3302:3306
|
|
environment:
|
|
MYSQL_ROOT_USER: root
|
|
MYSQL_ROOT_PASSWORD: root
|
|
MYSQL_DATABASE: exchange-db
|
|
MYSQL_USER: master
|
|
MYSQL_PASSWORD: cDe7gcrRBWetaAP
|
|
volumes:
|
|
- mysql-data:/var/lib/mysql
|
|
networks:
|
|
- exchange-staging
|
|
#################################################################
|
|
php:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: exchange-php
|
|
volumes:
|
|
- ../:/var/www/html
|
|
ports:
|
|
- "9002:9000"
|
|
networks:
|
|
- exchange-staging
|
|
#################################################################
|
|
|
|
volumes:
|
|
mysql-data:
|