summaryrefslogtreecommitdiffstats
path: root/.devcontainer/docker-compose.yml
blob: a30bba74a665396ec36b5b5fa1de05179d4718bf (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
version: '3'
services:
  nextclouddev:
    build: .
    volumes:
      - .:/workspace:cached
      - /var/run/docker.sock:/var/run/docker-host.sock
      - ..:/var/www/html
    command: /var/www/html/.devcontainer/entrypoint.sh
    ports:
      - 80:80
      - 8080:8080
      - 8025:8025

  db:
    image: postgres
    restart: always
    environment:
      POSTGRES_PASSWORD: postgres
      PGDATA: /data/postgres
    volumes:
      - db:/data/postgres
    network_mode: service:nextclouddev

  adminer:
    image: adminer
    restart: always
    network_mode: service:nextclouddev

  mailhog:
    image: mailhog/mailhog
    restart: always
    network_mode: service:nextclouddev

volumes:
  db: