-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
80 lines (75 loc) · 1.79 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '3'
services:
lck-db:
image: postgis/postgis:12-3.0
ports:
- "5432:5432"
environment:
POSTGRES_DB: public
POSTGRES_USER: postgres
POSTGRES_PASSWORD: yourPostgresPassword
TZ: 'UTC'
PGTZ: 'UTC'
# restart: always
volumes:
- lck-db-data:/var/lib/postgresql/data
- ./dumps:/dumps
container_name: lck-db
lck-db-test:
image: postgis/postgis:12-3.0
ports:
- "5433:5432"
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: yourPostgresPassword
TZ: 'UTC'
PGTZ: 'UTC'
# restart: always
volumes:
- ./dumps:/dumps
container_name: lck-db-test
lck-mail:
image: mailhog/mailhog:latest
environment:
MH_STORAGE: maildir
MH_MAILDIR_PATH: /home/mailhog
volumes:
- mailhog:/home/mailhog/
ports:
- 1025:1025
- 8025:8025
container_name: lck-mail
# LocoKit can handle S3 storage
# We take an example with minio
# we use also a proxy nginx to wire s3 storage
lck-s3:
image: minio/minio:latest
ports:
- "9000:9000"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: notsecret
command: server /data
volumes:
- s3-data:/data
container_name: lck-s3
# LocoKit can be served behind a proxy
# Here we use nginx,
# it serve backend API, and also storage s3 if needed
lck-proxy:
image: nginx
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/lck-server.conf:/etc/nginx/conf.d/default.conf
# binding for allowing nginx to serve file stored by lck
- ./fs-storage:/usr/share/nginx/storage
ports:
- "8000:80"
depends_on:
- lck-s3
container_name: lck-proxy
volumes:
lck-db-data:
mailhog:
s3-data: