~erock/pico

pico/docker-compose.prod.yml -rw-r--r-- 5.1 KiB
e88909edEric Bower docs(imgs,prose): add more info for docs an hour 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
version: "3.8"
services:
  postgres:
    env_file:
      - .env.prod
    volumes:
      - ./data/postgres-data:/var/lib/postgresql/data
    ports:
      - "5432:5432"
  minio-caddy:
    image: neurosnap/pico-caddy:latest
    restart: always
    env_file:
      - .env.prod
    environment:
      APP_DOMAIN: ${MINIO_DOMAIN:-minio.pico.sh}
      APP_EMAIL: ${MINIO_EMAIL:-hello@pico.sh}
    volumes:
      - ./caddy/Caddyfile.minio:/etc/caddy/Caddyfile
      - ./data/minio-caddy/data:/data
      - ./data/minio-caddy/config:/config
    ports:
      - "80:80"
      - "443:443"
    profiles:
      - db
      - all
  minio:
    env_file:
      - .env.prod
    volumes:
      - ./data/minio-data:/data
    ports:
      - "9000:9000"
      - "9001:9001"
  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"
  imgs-caddy:
    image: neurosnap/pico-caddy:latest
    restart: always
    networks:
      - imgs
    env_file:
      - .env.prod
    environment:
      APP_DOMAIN: ${IMGS_DOMAIN:-imgs.sh}
      APP_EMAIL: ${IMGS_EMAIL:-hello@pico.sh}
    volumes:
      - ./caddy/Caddyfile:/etc/caddy/Caddyfile
      - ./data/imgs-caddy/data:/data
      - ./data/imgs-caddy/config:/config
    ports:
      - "${IMGS_HTTPS_V4:-443}:443"
      - "${IMGS_HTTP_V4:-80}:80"
      - "${IMGS_HTTPS_V6:-[::1]:443}:443"
      - "${IMGS_HTTP_V6:-[::1]:80}:80"
    profiles:
      - imgs
      - caddy
      - all
  imgs-web:
    networks:
      imgs:
        aliases:
          - web
    env_file:
      - .env.prod
    volumes:
      - ./data/imgs-storage/data:/app/.storage
  imgs-ssh:
    networks:
      imgs:
        aliases:
          - ssh
    env_file:
      - .env.prod
    volumes:
      - ./data/imgs-storage/data:/app/.storage
      - ./data/imgs-ssh/data:/app/ssh_data
    ports:
      - "${IMGS_SSH_V4:-22}:2222"
      - "${IMGS_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
  imgs:
    driver_opts:
      com.docker.network.bridge.name: imgs
    ipam:
      config:
        - subnet: 172.21.0.0/16