version: '2' services: nginx: build: nginx ports: - "8000:80" volumes: - /etc/localtime:/etc/localtime:ro - ./html:/usr/share/nginx/html # Fancy! Using sockets to connect to php-fpm! :D - ./socks:/socks - ./nginx.conf:/etc/nginx/http.d/default.conf:ro # - ./more.conf:/etc/nginx/modules/more.conf:ro # restart: always php: build: php-image volumes: - ./socks:/socks - /etc/localtime:/etc/localtime:ro - ./html:/usr/share/nginx/html # restart: always # db: # image: postgres:11-alpine # volumes: # - ./pg_data:/var/lib/postgresql/data # - /etc/localtime:/etc/localtime:ro # environment: # POSTGRES_PASSWORD: easy4me2remember # POSTGRES_DB: mediawiki # POSTGRES_USER: mediawiki # user: "1000:1000" redis: image: redis:5-alpine volumes: - /etc/localtime:/etc/localtime:ro - ./redis:/data command: ["redis-server", "--appendonly", "yes"] user: "1000:1000"