version: '3.0'
services:
functionproject-api:
build:
context: './api'
ports:
- '8080:8080'
depends_on:
- 'functionproject-database'
- 'functionproject-maildev'
volumes:
- './api:/app'
- '/app/node_modules'
environment:
WAIT_HOSTS: 'functionproject-database:3306'
container_name: 'functionproject-api'
s.divlo.fr-website:
context: './s.divlo.fr'
- '7000:7000'
- './s.divlo.fr:/app'
container_name: 's.divlo.fr-website'
functionproject-website:
context: './website'
- '3000:3000'
- './website:/app'
container_name: 'functionproject-website'
functionproject-phpmyadmin:
image: 'phpmyadmin/phpmyadmin:5.0.2'
PMA_HOST: 'functionproject-database'
PMA_USER: 'root'
PMA_PASSWORD: 'password'
- '8000:80'
container_name: 'functionproject-phpmyadmin'
functionproject-database:
image: 'mysql:8.0.22'
command: '--default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci'
MYSQL_ROOT_PASSWORD: 'password'
MYSQL_DATABASE: 'functionproject'
- '3306:3306'
- 'database-volume:/var/lib/mysql'
container_name: 'functionproject-database'
functionproject-maildev:
image: 'maildev/maildev:1.1.0'
- '1080:80'
container_name: 'functionproject-maildev'
database-volume: