~erock/pico

ref: 90951e09568b61d17747a4a76036f2a876fe3f3e pico/docker-compose.prod.yml -rw-r--r-- 3.4 KiB
90951e09Eric Bower fix(lists): wrong anchor links 4 months ago
                                                                                
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
version: "3.8"
services:
  postgres:
    env_file:
      - .env.prod
    volumes:
      - ./data/postgres-data:/var/lib/postgresql/data
    ports:
      - "5432:5432"
  lists-caddy:
    image: neurosnap/pico-caddy:latest
    restart: always
    networks:
      - lists
    env_file:
      - .env.prod
    environment:
      APP_DOMAIN: ${LISTS_DOMAIN:-lists.sh}
      APP_EMAIL: ${LISTS_EMAIL:-hello@pico.sh}
    volumes:
      - ./caddy/Caddyfile:/etc/caddy/Caddyfile
      - ./data/lists-caddy/data:/data
      - ./data/lists-caddy/config:/config
    ports:
      - "${LISTS_HTTPS_V4:-443}:443"
      - "${LISTS_HTTP_V4:-80}:80"
      - "${LISTS_HTTPS_V6:-[::1]:443}:443"
      - "${LISTS_HTTP_V6:-[::1]:80}:80"
    profiles:
      - lists
      - caddy
      - all
  lists-web:
    networks:
      lists:
        aliases:
          - web
    env_file:
      - .env.prod
  lists-ssh:
    networks:
      lists:
        aliases:
          - ssh
    env_file:
      - .env.prod
    volumes:
      - ./data/lists-ssh/data:/app/ssh_data
    ports:
      - "${LISTS_SSH_V4:-22}:2222"
      - "${LISTS_SSH_V6:-[::1]:22}:2222"
  pastes-caddy:
    image: neurosnap/pico-caddy:latest
    restart: always
    networks:
      - pastes
    env_file:
      - .env.prod
    environment:
      APP_DOMAIN: ${PASTES_DOMAIN:-pastes.sh}
      APP_EMAIL: ${PASTES_EMAIL:-hello@pico.sh}
    volumes:
      - ./caddy/Caddyfile:/etc/caddy/Caddyfile
      - ./data/pastes-caddy/data:/data
      - ./data/pastes-caddy/config:/config
    ports:
      - "${PASTES_HTTPS_V4:-443}:443"
      - "${PASTES_HTTP_V4:-80}:80"
      - "${PASTES_HTTPS_V6:-[::1]:443}:443"
      - "${PASTES_HTTP_V6:-[::1]:80}:80"
    profiles:
      - pastes
      - caddy
      - all
  pastes-web:
    networks:
      pastes:
        aliases:
          - web
    env_file:
      - .env.prod
  pastes-ssh:
    networks:
      pastes:
        aliases:
          - ssh
    env_file:
      - .env.prod
    volumes:
      - ./data/pastes-ssh/data:/app/ssh_data
    ports:
      - "${PASTES_SSH_V4:-22}:2222"
      - "${PASTES_SSH_V6:-[::1]:22}:2222"
  prose-caddy:
    image: neurosnap/pico-caddy:latest
    restart: always
    networks:
      - prose
    env_file:
      - .env.prod
    environment:
      APP_DOMAIN: ${PROSE_DOMAIN:-prose.sh}
      APP_EMAIL: ${PROSE_EMAIL:-hello@pico.sh}
    volumes:
      - ./caddy/Caddyfile:/etc/caddy/Caddyfile
      - ./data/prose-caddy/data:/data
      - ./data/prose-caddy/config:/config
    ports:
      - "${PROSE_HTTPS_V4:-443}:443"
      - "${PROSE_HTTP_V4:-80}:80"
      - "${PROSE_HTTPS_V6:-[::1]:443}:443"
      - "${PROSE_HTTP_V6:-[::1]:80}:80"
    profiles:
      - prose
      - caddy
      - all
  prose-web:
    networks:
      prose:
        aliases:
          - web
    env_file:
      - .env.prod
  prose-ssh:
    networks:
      prose:
        aliases:
          - ssh
    env_file:
      - .env.prod
    volumes:
      - ./data/prose-ssh/data:/app/ssh_data
    ports:
      - "${PROSE_SSH_V4:-22}:2222"
      - "${PROSE_SSH_V6:-[::1]:22}:2222"

networks:
  prose:
    driver_opts:
      com.docker.network.bridge.name: prose
    ipam:
      config:
        - subnet: 172.18.0.0/16
  pastes:
    driver_opts:
      com.docker.network.bridge.name: pastes
    ipam:
      config:
        - subnet: 172.19.0.0/16
  lists:
    driver_opts:
      com.docker.network.bridge.name: lists
    ipam:
      config:
        - subnet: 172.20.0.0/16