-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 974 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (44 loc) · 974 Bytes
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
version: "3"
services:
springboot:
container_name: runner-api
image: duckbill413/runner-docker-api:latest # {{docker-hub-name}}/{{image-name}}
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
TZ: "Asia/Seoul"
networks:
- runner-net
volumes:
- /home/ec2-user/logs:/logs
redis:
image: redis:alpine
container_name: runner-redis
command: redis-server --port 6379
hostname: redis
ports:
- "6800:6379"
networks:
- runner-net
restart: always
nginx:
container_name: runner-nginx
image: duckbill413/runner-docker-nginx:latest
build:
context: ./nginx
dockerfile: Dockerfile
volumes:
- /etc/letsencrypt:/etc/letsencrypt:ro # letsencrypt 인증키의 경로
ports:
- "80:80"
- "443:443"
networks:
- runner-net
depends_on:
- springboot
networks:
runner-net:
driver: bridge