/
docker-compose.yml
53 lines (48 loc) · 1.07 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
version: '2.1'
services:
web:
image: analogj/lantern:web
# build:
# context: .
# dockerfile: ./web/Dockerfile
ports:
- "8080:9000"
depends_on:
database:
condition: service_healthy
volumes:
- certs:/srv/lantern/certs
proxy:
image: analogj/lantern:proxy
# build:
# context: .
# dockerfile: ./proxy/Dockerfile
ports:
- "8081:9000"
# command: 'lantern_generator' # lantern_proxy default
depends_on:
database:
condition: service_healthy
volumes:
- certs:/srv/lantern/certs
database:
image: healthcheck/postgres
environment:
POSTGRES_DB: lantern
POSTGRES_PASSWORD: lantern-password
POSTGRES_USER: lantern
volumes:
# - db:/var/lib/postgresql/data
- ./database/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
admin-database:
image: adminer
environment:
- ADMINER_DEFAULT_SERVER=database
ports:
- "5050:8080"
depends_on:
database:
condition: service_healthy
volumes:
certs:
driver: local