summaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: 4e1f3cd1363804709a6170e1462341ea1a5d360f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
services:

  web:
    build: ./build/nginx
    restart: unless-stopped
    ports:
     - '80:8080'
    volumes:
      - ./src:/opt/website:ro
      - ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
    depends_on:
      - php

  php:
    build: ./build/php
    restart: unless-stopped
    env_file:
      - docker.env
    volumes:
      - ./src:/opt/website:ro
      - ./data/session:/var/lib/php/session