-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
117 lines (111 loc) · 2.85 KB
/
docker-compose.yml
File metadata and controls
117 lines (111 loc) · 2.85 KB
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
version: "3"
services:
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: tobeit-uptime-kuma
volumes:
- ./uptime-kuma-data:/app/data
ports:
- 4001:3001
restart: always
depends_on:
- postgres
- pgbouncer
postgres:
container_name: tobeit-postgres
image: postgres:14.5-alpine
restart: always
env_file:
- .env
environment:
- POSTGRES_USER=${POSTGRES_USERNAME}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
- 5432:5432
volumes:
- ./pg-db:/var/lib/postgresql/data
pgbouncer:
container_name: tobeit-pgbouncer
image: edoburu/pgbouncer
restart: always
env_file:
- .env
environment:
- DB_USER=${POSTGRES_USERNAME}
- DB_PASSWORD=${POSTGRES_PASSWORD}
- DB_HOST=postgres
- DB_NAME=${POSTGRES_DB_NAME}
- POOL_MODE=transaction
- ADMIN_USERS=postgres,${POSTGRES_USERNAME}
ports:
- 6432:6432
volumes:
- ./pb-bouncer:/etc/pgbouncer
depends_on:
- postgres
cms:
container_name: tobeit-cms
build:
context: ./apps/cms
restart: unless-stopped
env_file:
- .env
environment:
- DATABASE_CLIENT=postgres
- DATABASE_HOST=tobeit-postgres
- DATABASE_PORT=${POSTGRES_SERVER_PORT}
- DATABASE_NAME=${POSTGRES_CMS_DB_NAME}
- DATABASE_USERNAME=${POSTGRES_DB_NAME}
- DATABASE_PASSWORD=${POSTGRES_PASSWORD}
- DATABASE_SSL=false
- HOST=${HOST}
ports:
- 1337:1337
volumes:
- ./strapi:/etc/strapi
depends_on:
- postgres
regis:
container_name: tobeit_backend
build:
context: ./apps/regis
restart: unless-stopped
env_file:
- .env
environment:
- POSTGRES_SERVER_URL=${POSTGRES_SERVER_URL}
- POSTGRES_SERVER_PORT=${POSTGRES_SERVER_PORT}
- POSTGRES_DB_NAME=${POSTGRES_DB_NAME}
- POSTGRES_DB_CMS_NAME=${POSTGRES_DB_CMS_NAME}
- POSTGRES_USERNAME=${POSTGRES_USERNAME}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- DATABASE_URL=${DATABASE_URL}
- POSTGRES_CMS_DB_NAME=${POSTGRES_CMS_DB_NAME}
- type=${type}
- project_id=${project_id}
- private_key_id=${private_key_id}
- private_key=${private_key}
- client_email=${client_email}
- client_id=${client_id}
- auth_uri=${auth_uri}
- token_uri=${token_uri}
- auth_provider_x509_cert_url=${auth_provider_x509_cert_url}
- client_x509_cert_url=${client_x509_cert_url}
- BACKEND_CMS_TOKEN=${BACKEND_CMS_TOKEN}
volumes:
- ./regis:/etc/regis
ports:
- 4000:4000
depends_on:
- postgres
- pgbouncer
nginx-proxy:
image: "jc21/nginx-proxy-manager:latest"
restart: unless-stopped
ports:
- "80:80"
- "81:81"
- "443:443"
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt