-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
98 lines (89 loc) · 2.85 KB
/
docker-compose.test.yml
File metadata and controls
98 lines (89 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
version: "3.7"
services:
postgres:
container_name: postgres_container
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-thisisecndbpassword}
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- "5432:5432"
networks:
- postgres
restart: unless-stopped
nginx:
restart: always
image: nginx
container_name: api_nginx
ports:
- '1000:80'
- '443:443'
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
DOMAIN: ${DOMAIN}
WEB_API_PORT: ${WEB_API_PORT}
REDIS_BULLBOARD_PORT: ${REDIS_BULLBOARD_PORT}
REDIS_BULL_NGINX_PATH: ${REDIS_BULL_NGINX_PATH}
volumes:
- ./nginx/default.test.conf:/etc/nginx/conf.d/default.test.conf.template
command: /bin/bash -c "envsubst < /etc/nginx/conf.d/default.test.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
- web-root:/var/www/certbot
depends_on:
- nginx
#command: certonly --webroot --webroot-path=/var/www/certbot --email ${CERT_EMAIL} --agree-tos --no-eff-email --force-renewal --staging -d ${DOMAIN}
# command: certonly --webroot --webroot-path=/var/www/certbot --email email --agree-tos --no-eff-email --force-renewal -d example.com www.example.com
redis_bullboard:
build:
dockerfile: Dockerfile.redis-bullboard.prod
context: ./
container_name: redis_bullboard
restart: unless-stopped
environment:
REDIS_BULLBOARD_PORT: ${REDIS_BULLBOARD_PORT}
REDIS_BULL_NGINX_PATH: ${REDIS_BULL_NGINX_PATH}
REDIS_BULLBOARD_USERNAME: ${REDIS_BULLBOARD_USERNAME}
REDIS_BULLBOARD_PASSWORD: ${REDIS_BULLBOARD_PASSWORD}
REDIS_HOST: ${REDIS_HOST}
volumes:
- .:/app
# - /app/node_modules
# - /app/packages/ecn-discord-bot/node_modules
# - /app/packages/ecn-discord-data/node_modules
# - /app/packages/ecn-eip712vc/node_modules
# - /app/packages/ecn-prisma/node_modules
# - /app/packages/ecn-sbt-api/node_modules
# - /app/packages/ecn-sbt-contract/node_modules
# - /app/packages/ecn-web-api/node_modules
# - /app/packages/ecn-web-frontend/node_modules
# - /app/packages/ecn-redis-bullboard/node_modules
command: /bin/bash -c "cd /app/packages/ecn-redis-bullboard/ && pm2-runtime ./index.js"
redis:
image: redis
container_name: tutorial_redis
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- redisdata:/data
ports:
- 6379:6379
networks:
postgres:
driver: bridge
volumes:
postgres:
redisdata:
web-root:
certbot-etc:
certbot-var:
dhparam:
# pgadmin: