summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 5a67ae7f745bd084e1f3817e6d409442e7749a2f (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
version: '2'
services:
  main:
    depends_on:
      - db
    image: matrixdotorg/synapse:v1.11.1-py3
    environment:
      - UID=65534
      - GID=65534
    networks:
      - public
      - private
    ports:
      - "127.0.0.1:8008:8008"
    volumes:
      - /var/lib/synapse/data:/data
    restart: unless-stopped

  db:
    image: postgres:9.6-alpine
    networks:
      - private
    volumes:
      - /var/lib/synapse/postgres:/var/lib/postgresql/data
    restart: unless-stopped

networks:
  public:
  private:
    internal: true