You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
749 B
38 lines
749 B
version: '3.8'
|
|
services:
|
|
mariadb:
|
|
image: mariadb
|
|
restart: on-failure
|
|
volumes:
|
|
- database_pokedex:/var/lib/mysql
|
|
ports:
|
|
- '3306:3306'
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: root_password
|
|
MYSQL_USER: my_user
|
|
MYSQL_PASSWORD: my_password
|
|
MYSQL_DATABASE: my_pokedex
|
|
|
|
nginx:
|
|
image: nginx:1.19-alpine
|
|
restart: on-failure
|
|
volumes:
|
|
- './docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro'
|
|
ports:
|
|
- '8002:80'
|
|
depends_on:
|
|
- php
|
|
volumes_from:
|
|
- php
|
|
php:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/php/Dockerfile
|
|
restart: on-failure
|
|
volumes:
|
|
- '.:/usr/src/app'
|
|
user: "${UID}:${GID}"
|
|
|
|
volumes:
|
|
database_pokedex:
|
|
|
|
|