Browse Source

Moving out Docker Compose config.

master
Dan Helfman 1 year ago
parent
commit
bd89ed45d8
1 changed files with 0 additions and 58 deletions
  1. 0
    58
      docker-compose.yml

+ 0
- 58
docker-compose.yml View File

@@ -1,58 +0,0 @@
1
-version: '3'
2
-
3
-services:
4
-    database:
5
-        image: postgres:9.4-alpine
6
-        environment:
7
-            POSTGRES_USER: mediagoblin
8
-            POSTGRES_PASSWORD: "${DATABASE_PASSWORD}"
9
-            POSTGRES_DB: mediagoblin
10
-            PGDATA: /var/lib/postgresql/data/pgdata
11
-    mail-relay:
12
-        image: alterrebe/postfix-relay
13
-        environment:
14
-            RELAY_HOST_NAME: "${HOSTNAME}"
15
-            ACCEPTED_NETWORKS: 172.0.0.0/8
16
-            EXT_RELAY_HOST: "${EMAIL_HOST}"
17
-            # "0" prefix is hack to sidestep assumption that port 465 means use smtp_tls_wrappermode.
18
-            EXT_RELAY_PORT: "0${EMAIL_PORT}"
19
-            SMTP_LOGIN: "${EMAIL_USERNAME}"
20
-            SMTP_PASSWORD: "${EMAIL_PASSWORD}"
21
-            USE_TLS: "yes"
22
-            TLS_VERIFY: encrypt
23
-        volumes:
24
-            - /etc/ssl:/etc/ssl:ro
25
-    mediagoblin:
26
-        build: .
27
-        environment:
28
-            NOTIFICATION_EMAIL: "${NOTIFICATION_EMAIL}"
29
-            EMAIL_RELAY_HOST: "mail-relay"
30
-            DATABASE_URL: "postgresql://mediagoblin:${DATABASE_PASSWORD}@database/mediagoblin"
31
-            VIRTUAL_HOST: "${HOSTNAME}"
32
-            LETSENCRYPT_HOST: "${HOSTNAME}"
33
-            LETSENCRYPT_EMAIL: "${ADMIN_EMAIL}"
34
-        volumes:
35
-            - /var/lib/mediagoblin/user_dev:/app/user_dev
36
-        depends_on:
37
-            - database
38
-            - mail-relay
39
-    nginx-proxy:
40
-        image: jwilder/nginx-proxy
41
-        ports:
42
-          - 80:80
43
-          - 443:443
44
-        volumes:
45
-          - /etc/nginx/vhost.d:/etc/nginx/vhost.d
46
-          - /usr/share/nginx/html:/usr/share/nginx/html
47
-          - /etc/nginx/certs:/etc/nginx/certs:ro
48
-          - /var/run/docker.sock:/tmp/docker.sock:ro
49
-#    letsencrypt-nginx-proxy-companion:
50
-#        image: jrcs/letsencrypt-nginx-proxy-companion
51
-#        volumes:
52
-#          - /etc/nginx/vhost.d:/etc/nginx/vhost.d
53
-#          - /usr/share/nginx/html:/usr/share/nginx/html
54
-#          - /etc/nginx/certs:/etc/nginx/certs:rw
55
-#          - /var/run/docker.sock:/var/run/docker.sock:ro
56
-#        environment:
57
-#            NGINX_DOCKER_GEN_CONTAINER: nginx-proxy
58
-#            NGINX_PROXY_CONTAINER: nginx-proxy

Loading…
Cancel
Save