-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.production.yml
42 lines (33 loc) · 1 KB
/
docker-compose.production.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
version: "3"
services:
# https://github.com/dragonflydb/dragonfly/blob/main/contrib/docker/docker-compose.yml
dragonfly-db:
container_name: dragonfly-db
image: "docker.dragonflydb.io/dragonflydb/dragonfly"
restart: on-failure
ulimits:
memlock: -1
volumes:
- dragonflydata:/data
# For better performance, consider `host` mode instead `port` to avoid docker NAT.
# `host` mode is NOT currently supported in Swarm Mode.
# https://docs.docker.com/compose/compose-file/compose-file-v3/#network_mode
# network_mode: "host"
ports:
- "6379:6379"
# https://github.com/vercel/next.js/blob/canary/examples/with-docker-compose/docker-compose.dev.yml
next-app:
container_name: next-app
restart: on-failure
depends_on:
- dragonfly-db
build:
context: ./app
dockerfile: docker/production.Dockerfile
volumes:
- ./app/src:/usr/app/src
- ./app/public:/usr/app/public
ports:
- 3000:3000
volumes:
dragonflydata: