|
| 1 | +version: '3.4' |
| 2 | +x-logging: |
| 3 | + &default-logging |
| 4 | + driver: "json-file" |
| 5 | + options: |
| 6 | + max-file: "5" |
| 7 | + max-size: "20m" |
| 8 | + |
| 9 | +services: |
| 10 | + |
| 11 | + mailpit: |
| 12 | + image: axllent/mailpit |
| 13 | + restart: unless-stopped |
| 14 | + #ports: |
| 15 | + # - '127.0.0.1:1025:1025' |
| 16 | + logging: *default-logging |
| 17 | + |
| 18 | + db: |
| 19 | + image: mariadb |
| 20 | + restart: unless-stopped |
| 21 | + env_file: |
| 22 | + - mysql.env |
| 23 | + volumes: |
| 24 | + # - ./docker/mariadb/config:/etc/mysql/conf.d:ro |
| 25 | + - ./db/data:/var/lib/mysql |
| 26 | + #ports: |
| 27 | + # - '127.0.0.1:3306:3306' |
| 28 | + logging: *default-logging |
| 29 | + |
| 30 | + nginx: |
| 31 | + build: ./docker/nginx/build |
| 32 | + image: nginx |
| 33 | + restart: unless-stopped |
| 34 | + volumes: |
| 35 | + - ./docker/nginx/.htpasswd:/etc/nginx/.htpasswd:ro |
| 36 | + - ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro |
| 37 | + - ./docker/nginx/config:/etc/nginx/conf.d:ro |
| 38 | + - ./projects:/srv/projects |
| 39 | + - ./docker/nginx/acme-challenge:/usr/share/nginx/html:ro |
| 40 | + # - ./docker/nginx/ssl:/etc/nginx/ssl:ro |
| 41 | + ports: |
| 42 | + - "80:80" |
| 43 | + # -"443:443" |
| 44 | + - "8025:8025" |
| 45 | + - "8080:8080" |
| 46 | + logging: *default-logging |
| 47 | + |
| 48 | + adminer: |
| 49 | + image: adminer |
| 50 | + restart: unless-stopped |
| 51 | + |
| 52 | + php-85: |
| 53 | + build: ./docker/php-85/build |
| 54 | + image: php-85 |
| 55 | + restart: unless-stopped |
| 56 | + env_file: |
| 57 | + - mysql.env |
| 58 | + volumes: |
| 59 | + - ./docker/php-85/config/msmtprc:/etc/msmtprc:ro |
| 60 | + - ./docker/php-85/config/php.ini:/usr/local/etc/php/conf.d/my.ini:ro |
| 61 | + - ./docker/php-85/config/www.conf:/usr/local/etc/php-fpm.d/www.conf:ro |
| 62 | + - ./docker/php-85/composer/:/root/.composer/ |
| 63 | + - ./projects/:/srv/projects/ |
| 64 | + logging: *default-logging |
0 commit comments