-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
51 lines (45 loc) · 843 Bytes
/
docker-compose.prod.yml
File metadata and controls
51 lines (45 loc) · 843 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
48
49
50
51
version: '3.7'
services:
auth_api:
container_name: auth_api
image: auth_api
env_file:
- .env
build:
context: .
dockerfile: Dockerfile.prod
volumes:
- ./:/src
ports:
- "9000:9000"
depends_on:
- db
- redis
db:
container_name: db
hostname: db
image: library/postgres:14.1
environment:
- POSTGRES_USER=auth
- POSTGRES_PASSWORD=auth
- POSTGRES_DB=auth
volumes:
- app_pg_data:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
image: redis:6.2-alpine
hostname: redis
container_name: redis
command:
- 'redis-server'
- '--requirepass myStrongPassword'
ports:
- 6379:6379
volumes:
app_pg_data:
driver: "local"
networks:
default:
external: true
name: auth_main