summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: fba9a8670fb13743aceed47aecbbfc74cf7574a2 (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.12.3-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