-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yaml
77 lines (71 loc) · 2.04 KB
/
docker-compose.dev.yaml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# This is a DEVELOPMENT ONLY docker-compose configuration file.
# To run this during development, use the following command:
# docker-compose -f docker-compose.dev.yaml up -d
# Additionally, start the Next.js server via `yarn dev`.
# Version is now obsolete. This compose configuration assumes version 3.8.
x-logging: &logging
logging:
driver: 'json-file'
options:
max-file: '10'
max-size: '1gb'
networks:
orientation:
driver: bridge
services:
postgres:
image: postgres:latest
container_name: postgres
pull_policy: always
restart: unless-stopped
stop_signal: SIGINT
stop_grace_period: 5m
tty: true
shm_size: 256mb
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./db:/var/lib/postgresql/data:rw
ports:
- 127.0.0.1:5432:5432
environment:
- POSTGRES_USER=orientation
env_file:
- .env
networks:
- orientation
<<: *logging
redis_ephemeral:
image: redis:latest
container_name: redis-ephemeral
pull_policy: always
restart: unless-stopped
stop_signal: SIGINT
stop_grace_period: 5m
tty: true
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
ports:
- 127.0.0.1:6379:6379
networks:
- orientation
<<: *logging
redis_persistent:
image: redis:latest
container_name: redis-persistent
command: redis-server --appendonly yes
pull_policy: always
restart: unless-stopped
stop_signal: SIGINT
stop_grace_period: 5m
tty: true
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./redisdb:/data:rw
ports:
- 127.0.0.1:6380:6379
networks:
- orientation
<<: *logging