-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.release.yml
58 lines (53 loc) · 1.22 KB
/
docker-compose.release.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
53
54
55
56
57
58
version: "3.8"
services:
app:
build:
context: .
dockerfile: Dockerfile.release
container_name: release-attendify-backend
ports:
- "${APP_PORT}:3000"
env_file:
- .env.release
volumes:
- .:/app
- /app/node_modules
- /app/dist
depends_on:
- db
- redis
db:
image: postgres:15
container_name: release-attendify-db
restart: always
env_file:
- .env
volumes:
- pg_data_release-attendify:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT}:5432"
pgadmin:
image: dpage/pgadmin4
container_name: release-attendify-pgadmin
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
ports:
- "${PGADMIN_PORT}:80"
depends_on:
- db
redis:
image: redis:7
container_name: release-attendify-redis
restart: always
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
ports:
- "${REDIS_PORT}:6379"
command: ["redis-server", "--requirepass", "${REDIS_PASSWORD}"]
volumes:
- redis_data_release-attendify:/data
volumes:
pg_data_release-attendify:
redis_data_release-attendify: