-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
42 lines (39 loc) · 922 Bytes
/
docker-compose.prod.yml
File metadata and controls
42 lines (39 loc) · 922 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
version: '3'
services:
trekmate:
image: abby/trekmate:${IMAGE_VERSION}
depends_on:
- postgres-primary-db
- redis-session-store
command: ["node", "app.js"]
container_name: trekmate-prod
env_file: .env
environment:
NODE_ENV: production
ports:
- "${EXPRESS_HOST_PORT}:${EXPRESS_CONTAINER_PORT}"
networks:
- my-app-network
postgres-primary-db:
image: postgres:10.0-alpine
env_file: .env
volumes:
- pg-data-volume:/var/lib/postgresql/data
ports:
- '${POSTGRES_HOST_PORT}:${POSTGRES_CONTAINER_PORT}'
networks:
- my-app-network
redis-session-store:
image: redis:4.0-alpine
env_file: .env
volumes:
- redis-data-volume:/data
ports:
- '${REDIS_HOST_PORT}:${REDIS_CONTAINER_PORT}'
networks:
- my-app-network
volumes:
pg-data-volume:
redis-data-volume:
networks:
my-app-network: