-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (40 loc) · 867 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (40 loc) · 867 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
43
44
45
version: '3'
services:
# start Postgres, and ensure that data is stored to a mounted volume
postgres:
image: 'postgres:14.2'
ports:
- "5430:5432"
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: concurrency
volumes:
- ./db-data/postgres/:/var/lib/postgresql/data/
# start Redis, and ensure that data is stored to a mounted volume
redis:
image: 'redis:alpine'
ports:
- "6379:6379"
restart: always
volumes:
- ./db-data/redis/:/data
# start mailhog
mailhog:
image: 'mailhog/mailhog:latest'
ports:
- "1025:1025"
- "8025:8025"
restart: always
# start web app
app:
build:
context: .
restart: always
ports:
- "80:80"
depends_on:
- postgres
- redis
- mailhog