-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
37 lines (34 loc) · 1006 Bytes
/
docker-compose.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
services:
redis:
image: redis
container_name: giftogether-redis
ports:
- '6379:6379'
volumes:
- backup-redis:/data
- ./docker/redis.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf
networks:
- g2gnet
app:
image: 975050131958.dkr.ecr.ap-northeast-2.amazonaws.com/coding-jjun/giftogether:latest
container_name: giftogether-app
ports:
- '443:3000'
env_file:
- .env
depends_on:
- redis
restart: on-failure
volumes:
- ./global-bundle.pem:/usr/src/app/global-bundle.pem
- /etc/letsencrypt/live/api.giftogether.co.kr/privkey.pem:/etc/letsencrypt/live/api.giftogether.co.kr/privkey.pem
- /etc/letsencrypt/live/api.giftogether.co.kr/fullchain.pem:/etc/letsencrypt/live/api.giftogether.co.kr/fullchain.pem
networks:
- g2gnet
volumes:
backup-redis:
external: true
networks:
g2gnet:
driver: bridge