-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
68 lines (67 loc) · 2.36 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
services:
# ===================================================================================================================================================================================
backend:
image: fenrisshq/terracapital:backend
build:
context: ./backend
environment:
- NODE_ENV=production
- FORCE_COLOR=1
- DISPLAY=${X11_DISPLAY}
- APP_PORT=${APP_PORT}
- APP_BASE_URL=${APP_BASE_URL}
- APP_DATABASE_CONNECTION_URL=${APP_DATABASE_CONNECTION_URL}
- APP_REDIS_HOST=${APP_REDIS_HOST}
- APP_REDIS_PORT=${APP_REDIS_PORT}
- API_S3_ENDPOINT=${API_S3_ENDPOINT}
- API_S3_ACCESS_KEY=${API_S3_ACCESS_KEY}
- API_S3_SECRET_KEY=${API_S3_SECRET_KEY}
- API_S3_BUCKET=${API_S3_BUCKET}
- API_GOOGLE_CLIENT_ID=${API_GOOGLE_CLIENT_ID}
- API_GOOGLE_CLIENT_SECRET=${API_GOOGLE_CLIENT_SECRET}
- APP_PLAYWRIGHT_HEADLESS=${APP_PLAYWRIGHT_HEADLESS}
volumes:
- ./backend/logs:/usr/src/app/logs
depends_on:
- redis
tty: true
restart: always
# ===================================================================================================================================================================================
frontend:
image: fenrisshq/terracapital:frontend
build:
context: ./frontend
environment:
- NODE_ENV=production
restart: always
# ===================================================================================================================================================================================
nginx:
image: fenrisshq/terracapital:nginx
build:
context: ./nginx
ports:
- mode: host
protocol: tcp
published: 80
target: 80
- mode: host
protocol: tcp
published: 443
target: 443
volumes:
- ./nginx/logs:/var/log/nginx:z
depends_on:
- backend
- frontend
restart: always
# ===================================================================================================================================================================================
redis:
image: bitnami/redis:7.0.8
command: /opt/bitnami/scripts/redis/run.sh --maxmemory-policy noeviction
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- redis_data:/bitnami/redis/data
restart: always
volumes:
redis_data: