-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.11 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
version: '3.8'
services:
nginx:
image: nginx:stable-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/ssl:/etc/nginx/ssl:ro
restart: always
# app:
# build: ./app
# ports:
# - "8080:8080"
# depends_on:
# - db
# environment:
# SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/ecommerce
# SPRING_DATASOURCE_USERNAME: postgres
# SPRING_DATASOURCE_PASSWORD: postgres
mongo:
image: mongo:6.0
container_name: auth-mongo
ports:
- "27017:27017"
environment:
MONGO_INITDB_DATABASE: auth
MONGO_INITDB_ROOT_USERNAME: mongodb
MONGO_INITDB_ROOT_PASSWORD: mongodb
volumes:
- ./mongo-init:/docker-entrypoint-initdb.d
db:
image: postgres:16
restart: always
environment:
POSTGRES_DB: ecommerce
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
redis:
image: redis:7
restart: always
ports:
- "6379:6379"