-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
51 lines (45 loc) · 1.06 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
services:
db:
platform: linux/amd64
image: postgis/postgis:13-3.1
volumes:
- database-volume:/var/lib/postgresql/data
environment:
POSTGRES_DB: parking_permits_db
POSTGRES_USER: parking_permits_user
POSTGRES_PASSWORD: parking_permits_password
ports:
- "127.0.0.1:5555:5432"
container_name: parking-permits-database
api:
platform: linux/amd64
image: parking_permits_api
build:
context: ./
dockerfile: ./Dockerfile
env_file:
- .env
volumes:
- .:/app:cached
ports:
- "127.0.0.1:8888:8888"
container_name: parking-permits-api
mailpit:
image: axllent/mailpit
container_name: mailpit
restart: unless-stopped
volumes:
- ./data:/data
ports:
- 8025:8025
- 1025:1025
environment:
MP_MAX_MESSAGES: 5000
MP_DATABASE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
volumes:
database-volume: {}
networks:
default:
name: helsinki