-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
131 lines (123 loc) · 3.49 KB
/
docker-compose.yml
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
networks:
dev:
services:
frontend:
build:
context: .
dockerfile: Dockerfile
target: frontend
args:
VITE_PUBLIC_CDN_URL: ${VITE_PUBLIC_CDN_URL}
VITE_APP_NAME: ${VITE_APP_NAME}
VITE_MEDIA_FACEBOOK: ${VITE_MEDIA_FACEBOOK}
VITE_MEDIA_INSTAGRAM: ${VITE_MEDIA_INSTAGRAM}
VITE_MEDIA_TWITTER: ${VITE_MEDIA_TWITTER}
VITE_MEDIA_TELEGRAM: ${VITE_MEDIA_TELEGRAM}
environment:
- VITE_PUBLIC_CDN_URL=${VITE_PUBLIC_CDN_URL}
- VITE_APP_NAME=${VITE_APP_NAME}
- VITE_MEDIA_FACEBOOK=${VITE_MEDIA_FACEBOOK}
- VITE_MEDIA_INSTAGRAM=${VITE_MEDIA_INSTAGRAM}
- VITE_MEDIA_TWITTER=${VITE_MEDIA_TWITTER}
- VITE_MEDIA_TELEGRAM=${VITE_MEDIA_TELEGRAM}
ports:
- 80:80
- 443:443
volumes:
- .nginx/nginx.conf:/etc/nginx/nginx.conf
- ./certbot/conf/:/etc/letsencrypt
- ./certbot/www/:/var/www/certbot
networks:
- dev
depends_on:
- backend
backend:
restart: always
build:
context: .
dockerfile: Dockerfile
target: backend
ports:
- 4000:4000
environment:
- DB_CONNECTION_URI=${DB_CONNECTION_URI}
- MINIO_ENDPOINT=${MINIO_ENDPOINT}
- MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY}
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY}
- MINIO_BUCKET=${MINIO_BUCKET}
- MINIO_REGION=${MINIO_REGION}
- APP_EMAIL_ADDRESS=${APP_EMAIL_ADDRESS}
- APP_EMAIL_PASSWORD=${APP_EMAIL_PASSWORD}
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET}
- SESSION_SECRET=${SESSION_SECRET}
- ACCESS_TOKEN_SECRET=${ACCESS_TOKEN_SECRET}
- REFRESH_TOKEN_SECRET=${REFRESH_TOKEN_SECRET}
- CLIENT_URL=${CLIENT_URL}
- ADMIN_EMAILS=${ADMIN_EMAILS}
networks:
- dev
landing:
build:
context: ../landing
dockerfile: Dockerfile
target: landing
ports:
- "81:80"
- "8443:443"
volumes:
- .nginx/nginx.conf:/etc/nginx/nginx.conf
- ./certbot/conf/:/etc/letsencrypt
- ./certbot/www/:/var/www/certbot
networks:
- dev
postgres:
image: postgis/postgis:14-3.4-alpine
restart: always
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE}
networks:
- dev
minio:
image: quay.io/minio/minio
command: server /data --console-address ":9090"
restart: always
ports:
- 9000:9000
- 9090:9090
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
# MINIO_DOMAIN: altloc.com/cdn
MINIO_SERVER_HOST: minio.altloc.com
MINIO_BROWSER_REDIRECT_URL: http://minio.altloc.com
MINIO_SERVER_URL: http://minio.altloc.com
volumes:
- minio-data:/data
networks:
- dev
certbot:
image: certbot/certbot
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
entrypoint:
[
"/bin/sh",
"-c",
"trap 'exit 0' TERM; while :; do sleep 6h & wait $!; certbot renew --non-interactive; done",
]
command: certonly --webroot -w /var/www/certbot --force-renewal --non-interactive --email [email protected] -d altloc.com -d www.altloc.com -d mydarkhobby.com -d www.mydarkhobby.com --agree-tos
networks:
- dev
volumes:
postgres-data:
driver: local
minio-data:
driver: local