-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
67 lines (62 loc) · 1.56 KB
/
docker-compose.dev.yml
File metadata and controls
67 lines (62 loc) · 1.56 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
version: "3"
services:
backend:
platform: linux/amd64
container_name: server
build:
context: ./Backend
dockerfile: Dockerfile
ports:
- "8080:8080"
restart: always
networks:
- omd
environment:
SPRING_DATASOURCE_URL: ${SPRING_DATASOURCE_URL}
SPRING_DATASOURCE_USERNAME: ${DB_USERNAME}
SPRING_DATASOURCE_PASSWORD: ${DB_PASSWORD}
CLOUD_AWS_CREDENTIALS_ACCESS_KEY: ${S3_ACCESS_KEY} # AWS Access Key
CLOUD_AWS_CREDENTIALS_SECRET_KEY: ${S3_SECRET_KEY} # AWS Secret Key
CLOUD_AWS_REGION_STATIC: ap-northeast-2
CLOUD_AWS_S3_BUCKET: onmydesk
naver.api.client.id: ${NAVER_API_CLIENT_ID}
naver.api.client.secret: ${NAVER_API_CLIENT_SECRET}
nginx:
platform: linux/amd64
image: nginx:latest
restart: unless-stopped
build:
context: ./Nginx
ports:
- "80:80"
- "433:433"
volumes:
- ./data/nginx/conf.d:/etc/nginx/conf.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
depends_on:
- backend
- frontend
networks:
- omd
certbot:
image: certbot/certbot
volumes:
- ./certbot/conf/:/etc/letsencrypt
- ./certbot/logs/:/var/log/letsencrypt
- ./certbot/data:/usr/share/nginx/html/letsencrypt
restart: unless-stopped
frontend:
platform: linux/amd64
container_name: web
build:
context: ./Frontend
dockerfile: Dockerfile
ports:
- "5173:5173"
restart: always
networks:
- omd
networks:
omd:
driver: bridge