-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (73 loc) · 1.48 KB
/
docker-compose.yml
File metadata and controls
77 lines (73 loc) · 1.48 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
version: '3.8'
services:
# Nginx 리버스 프록시
nginx:
image: nginx:alpine
container_name: ds-nginx
ports:
- '80:80'
- '443:443'
volumes:
- ./deploy/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./deploy/nginx/conf.d:/etc/nginx/conf.d:ro
- ./deploy/nginx/ssl:/etc/nginx/ssl:ro
depends_on:
- storybook
restart: unless-stopped
networks:
- frontend-network
healthcheck:
test:
[
'CMD',
'wget',
'--quiet',
'--tries=1',
'--spider',
'http://localhost/health',
]
interval: 30s
timeout: 10s
retries: 3
deploy:
resources:
limits:
memory: 256M
reservations:
memory: 128M
# Demo App
demo:
build:
context: .
dockerfile: ./apps/demo/Dockerfile
container_name: ds-demo
restart: unless-stopped
networks:
- frontend-network
deploy:
resources:
limits:
memory: 256M
reservations:
memory: 128M
# Storybook 문서
storybook:
build:
context: .
dockerfile: ./apps/storybook/Dockerfile
container_name: ds-storybook
restart: unless-stopped
networks:
- frontend-network
deploy:
resources:
limits:
memory: 256M
reservations:
memory: 128M
networks:
frontend-network:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16