-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpodman-compose.yml
52 lines (47 loc) · 941 Bytes
/
podman-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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
services:
postgres:
image: postgres
environment:
POSTGRES_DB: ${DATABASE_NAME}
POSTGRES_USER: ${DATABASE_USERNAME}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
restart: always
ports:
- "5432:5432"
volumes:
- docker-nest-postgres:/var/lib/postgresql/data
container_name: postgres
redis:
image: redis
ports:
- "6379:6379"
volumes:
- docker-nest-redis:/data
container_name: redis
restart: always
shortify:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
env_file:
- .env
depends_on:
- redis
- postgres
command: sh -c "npm run migration:run; npm run start:dev"
container_name: shortify
restart: always
depends_on:
- postgres
- redis
networks:
default:
driver: bridge
aliases:
- postgres
- redis
volumes:
docker-nest-postgres:
docker-nest-redis: