-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathexample-docker-compose.yml
105 lines (97 loc) · 2.69 KB
/
example-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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# example compose file
# remember to copy tango.config.py to the working directory from where the compose file is run
# or use the setup script in repo
name: devu
services:
api:
container_name: devu-api
image: ghcr.io/makeopensource/devu/api:develop
environment:
WAIT_HOSTS: db:5432
CLIENT_URL: https://devu.app # TODO change the client url here if needed
LEVIATHAN_URL: http://leviathan:9221
depends_on:
db:
condition: service_started
ports:
- '3001:3001'
restart: unless-stopped
client:
image: ghcr.io/makeopensource/devu/client:develop
environment:
API_URL: https://api.devu.app # todo change this to prod api url
ROOT_PATH: /
volumes:
- ./dist:/out
# Hosts the front end static files from ./dist/local thorough a web server
nginx:
container_name: devu-client-nginx
image: ghcr.io/makeopensource/devu/nginx:develop
volumes:
- ./dist/local:/usr/share/nginx/html
depends_on:
client:
condition: service_completed_successfully
command: >
/bin/sh -c "echo 'Frontend is now accessible at http://localhost:9000' && nginx -g 'daemon off;'"
ports:
- '9000:80'
restart: unless-stopped
# leviathan stuff
leviathan:
container_name: leviathan
image: ghcr.io/makeopensource/leviathan:master
ports:
- "9221:9221"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./levi/:/app/appdata
restart: unless-stopped
# testing frontend for leviathan
kraken:
container_name: kraken
image: ghcr.io/makeopensource/leviathan/kraken:master
ports:
- "3022:3000"
environment:
- LEVIATHAN_URL=http://levi:9221
restart: unless-stopped
db:
# Runs the PostgreSQL database
image: postgres
environment:
POSTGRES_DB: typescript_api
POSTGRES_USER: typescript_user
POSTGRES_PASSWORD: password
volumes:
- ./pgdata:/var/lib/postgresql/data
ports:
- '5432:5432'
expose:
- '5432'
restart: unless-stopped
minio:
image: minio/minio
ports:
- '9002:9000'
- '9001:9001'
expose:
- '9000'
volumes:
- ./minio:/data
environment:
MINIO_ROOT_USER: typescript_user
MINIO_ROOT_PASSWORD: changeMe
command: server /data --console-address ":9001"
restart: unless-stopped
# auto update containers
watchtower:
container_name: watchtower
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- WATCHTOWER_POLL_INTERVAL=900 # check for new image every 15 min
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_INCLUDE_STOPPED=true
restart: unless-stopped