summaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: efa1a2a3cf4d2686ef80fe10182143b433e6d006 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '3.3'

services:
  web:
    build:
      context: ./build/web/
      args:
        WP_IMAGE_TAG: $WP_IMAGE_TAG
    restart: always
    ports:
      - 8000:80
    volumes:
      - ./html:/var/www/html
  db:
    image: docker.io/library/mariadb:${MARIADB_VER:-latest}
    restart: always
    environment:
      MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
    env_file:
      - .db.env
    command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --sql_mode=''
    volumes:
      - mariadb:/var/lib/mysql
  mail:
    build: ./build/mailhog/
    ports:
      - 8025:8025

  adminer:
    image: docker.io/library/adminer
    restart: always
    ports:
      - 8080:8080
  cli:
    image: wordpress:${WP_CLI_IMAGE_TAG}
    profiles:
      - cli
    volumes:
      - ./html:/var/www/html

volumes:
  mariadb: