-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (30 loc) · 832 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (30 loc) · 832 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
version: '3.9'
services:
url-shortener-app:
build:
dockerfile: ./app/Dockerfile
context: .
volumes: ['./app:/opt/app']
ports:
- "5001:5000"
environment:
APP_PORT: 5000
APP_HOT_RELOAD: 1
REDIS_HOST: url-shortener-redis
REDIS_PORT: 6379
REDIS_PASSWORD: MDNcVb924a
depends_on:
- url-shortener-redis
url-shortener-nginx:
image: nginx:1.23-alpine
volumes:
- './nginx.conf:/etc/nginx/nginx.conf'
ports:
- "80:80"
depends_on:
- url-shortener-app
url-shortener-redis:
image: redis:7.0-alpine
ports:
- "6379:6379"
command: redis-server --save 60 1 --requirepass MDNcVb924a --