-
-
Notifications
You must be signed in to change notification settings - Fork 123
/
Copy pathdocker-compose.local.yml
109 lines (101 loc) · 3.07 KB
/
docker-compose.local.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
version: '3.9'
networks:
iced-latte-network:
name: iced-latte-network
attachable: true
volumes:
pg_data:
nginx_data:
backend_logs: {}
services:
iced-latte-frontend:
image: 'zufarexplainedit/iced-latte-frontend:latest'
container_name: iced-latte-frontend
# build:
# context: /Users/astriganova/Desktop/Projects/Iced-Latte-Frontend
# dockerfile: Dockerfile.local
restart: 'always'
ports:
- '3000:3000'
networks:
- iced-latte-network
iced-latte-backend:
image: 'zufarexplainedit/iced-latte-backend:latest'
container_name: iced-latte-backend
environment:
APP_SERVER_PORT: 8083
APP_JWT_SECRET: 404E635266556A586E3272357538782F413F4428472B4B6250645367566B5970
APP_JWT_REFRESH_SECRET: 404E635266556A586E3272357538782F413F4428472B4B6250645367566B5970404E635266556A586E3272357538782F413F4428472B4B6250645367566B5970
DATASOURCE_PORT: 5432
DATASOURCE_NAME: testdb
DATASOURCE_USERNAME: postgres
DATASOURCE_PASSWORD: postgres
DATASOURCE_HOST: iced-latte-postgresdb
REDIS_HOST: iced-latte-redis
REDIS_PORT: 6380
AWS_DEFAULT_PRODUCT_IMAGES_PATH: ./products
AWS_ACCESS_KEY: vbfgngfdndgndgndgndgndgndgndg
AWS_SECRET_KEY: vbfgngfdndgndgndgndgndgndgndg
AWS_REGION: eu-west-1
AWS_PRODUCT_BUCKET: products
AWS_USER_BUCKET: users
GOOGLE_AUTH_CLIENT_ID: vbfgngfdndgndgndgndgndgndgndg
GOOGLE_AUTH_CLIENT_SECRET: vbfgngfdndgndgndgndgndgndgndg
GOOGLE_AUTH_REDIRECT_URI: vbfgngfdndgndgndgndgndgndgndg
STRIPE_SECRET_KEY: sk_test_51PJxciHA4AopuQMMeXaJNETc7RUAITeMTKJei07L8iEHrRiWLQalKsr756dnOzmKPUXufkUVNUSaiPyktJG9dGY500x0cM817f
STRIPE_WEBHOOK_SECRET: whsec_81c734081f94172b76e5dede103b67b3fcfc69220fa0747a12d67244c9ddb57d
build:
context: .
dockerfile: Dockerfile.local
ports:
- '8083:8083'
- '5005:5005' # port for remote debugging
networks:
- iced-latte-network
depends_on:
- iced-latte-postgresdb
volumes:
- backend_logs:/usr/app/logs
- ./products:/usr/app/products
restart: on-failure
iced-latte-postgresdb:
image: 'postgres:13.11-bullseye'
container_name: iced-latte-postgresdb
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=testdb
ports:
- '5432:5432'
networks:
- iced-latte-network
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 30s
timeout: 10s
retries: 5
restart: on-failure
iced-latte-nginx:
image: nginx:alpine
container_name: iced-latte-nginx
volumes:
- ./nginx_data:/etc/nginx/conf.d:ro
ports:
- '80:80'
networks:
- iced-latte-network
depends_on:
- iced-latte-backend
restart: on-failure
iced-latte-redis:
image: redis/redis-stack:latest
container_name: iced-latte-redis
networks:
- iced-latte-network
environment:
- REDIS_HOST=localhost
- REDIS_PORT=6380
ports:
- "6380:6380"