-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
54 lines (45 loc) · 1.13 KB
/
docker-compose.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
43
44
45
46
47
48
49
50
51
52
53
54
version: "3.8"
services:
app:
build:
context: .
dockerfile: Dockerfile
volumes:
- ../..:/workspaces:cached
# Overrides default command so things don't shut down after the process ends.
command: sleep infinity
# Runs app on the host network, so that every port is already available from the host.
network_mode: "host"
# Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
# (Adding the "ports" property to this file will not forward from a Codespace.)
postgres:
image: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
network_mode: "host"
redis:
image: redis
ports:
- '6379:6379'
volumes:
- redis-data:/data
network_mode: "host"
smtp4dev:
image: rnwood/smtp4dev
ports:
- '3777:80'
- '5968:25'
volumes:
- smtp4dev:/smtp4dev
environment:
- RelayOptions__Login=dev
- RelayOptions__Password=dev
volumes:
postgres-data:
redis-data:
smtp4dev: