forked from devleague/react-kanban
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yml
41 lines (41 loc) · 963 Bytes
/
docker-compose.prod.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
version: "3"
services:
express-server:
image: ${DOCKERHUB_NAME}/${IMAGE_NAME}:${IMAGE_VERSION}
depends_on:
- postgres-primary-db
container_name: ${IMAGE_NAME}
env_file: .env
environment:
ENVIRONMENT: production
NODE_ENV: production
ports:
- "${EXPRESS_HOST_PORT}:${EXPRESS_CONTAINER_PORT}"
networks:
- my-app-network
restart: always
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
restart: always
redis-server:
image: redis:4.0-alpine
env_file: .env
volumes:
- redis-data-volume:/data
ports:
- '${REDIS_HOST_PORT}:${REDIS_CONTAINER_PORT}'
networks:
- my-app-network
restart: always
volumes:
pg-data-volume:
redis-data-volume:
networks:
my-app-network: