-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (72 loc) · 1.88 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
version: "3.7"
services:
postgres:
image: postgres:10.5
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=${APPSTORE_POSTGRES_PASSWD:?err}
- POSTGRES_USER=${APPSTORE_POSTGRES_USER:?err}
networks:
- backend
restart: unless-stopped
docker-registry:
image: registry:2.7.1
volumes:
- registry-data:/var/lib/registry
- registry-config:/etc/docker/registry
networks:
- backend
expose:
- 5000
command: ["serve", "/etc/docker/registry/config.yml"]
restart: unless-stopped
docker-registry-ui:
image: joxit/docker-registry-ui:1.4-static
depends_on:
- docker-registry
restart: unless-stopped
environment:
- REGISTRY_TITLE=Protos app store
- REGISTRY_URL=http://docker-registry:5000
- DELETE_IMAGES=true
expose:
- 80
networks:
- backend
app-store:
image: registry.gitlab.com/protosio/app-store:0.0.3
networks:
- backend
environment:
- APPSTORE_POSTGRES_USER=${APPSTORE_POSTGRES_USER:?err}
- APPSTORE_POSTGRES_PASSWD=${APPSTORE_POSTGRES_PASSWD:?err}
entrypoint: /usr/bin/app-store --dbhost postgres --dbuser ${APPSTORE_POSTGRES_USER:?err} --dbpass ${APPSTORE_POSTGRES_PASSWD:?err} --dbname ${APPSTORE_POSTGRES_USER:?err}
command: ["serve"]
depends_on:
- postgres
- docker-registry
expose:
- 8000
restart: unless-stopped
volumes:
db-data:
driver: local
driver_opts:
type: "none"
o: "bind"
device: "${APP_STORE_DATA_PATH:?err}/pg-data"
registry-data:
driver: local
driver_opts:
type: "none"
o: "bind"
device: "${APP_STORE_DATA_PATH:?err}/registry-data"
registry-config:
driver: local
driver_opts:
type: "none"
o: "bind"
device: "${APP_STORE_DATA_PATH:?err}/registry-config"
networks:
backend: