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.
29 lines
655 B
29 lines
655 B
version: '3.8'
|
|
services:
|
|
# mariadb:
|
|
# image: mariadb
|
|
# restart: on-failure
|
|
# environment:
|
|
# MYSQL_ROOT_PASSWORD: root_password
|
|
# MYSQL_USER: my_user
|
|
# MYSQL_PASSWORD: my_password
|
|
# MYSQL_DATABASE: my_database_name
|
|
|
|
nginx:
|
|
image: nginx:1.19-alpine
|
|
restart: on-failure
|
|
volumes:
|
|
- './src/public:/usr/src/app'
|
|
- './docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro'
|
|
ports:
|
|
- '80:80'
|
|
depends_on:
|
|
- php
|
|
php:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/php/Dockerfile
|
|
restart: on-failure
|
|
volumes:
|
|
- './src:/usr/src/app'
|
|
user: 1000:1000
|