Skip to content

Commit cebf4ab

Browse files
committed
chore: add prod deploy config
1 parent 3850f4d commit cebf4ab

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.prod/Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.PHONY: all
2+
all: up logs
3+
4+
.PHONY: up
5+
up:
6+
docker-compose up -d
7+
8+
.PHONY: logs
9+
logs:
10+
docker-compose logs -f --tail=1000

.prod/docker-compose.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
version: '3.7'
2+
3+
services:
4+
speechotron:
5+
image: ultreme/speechotron
6+
restart: on-failure
7+
environment:
8+
- VIRTUAL_HOST=speech.camembertaulaitcrew.biz
9+
- VIRTUAL_PORT=8000
10+
command: server
11+
labels:
12+
com.centurylinklabs.watchtower.enable: "true"
13+
networks:
14+
- service-proxy
15+
- internal
16+
17+
watchtower:
18+
image: containrrr/watchtower
19+
labels:
20+
com.centurylinklabs.watchtower.enable: "true"
21+
restart: on-failure
22+
volumes:
23+
- /var/run/docker.sock:/var/run/docker.sock
24+
- /etc/localtime:/etc/localtime:ro
25+
- /etc/timezone:/etc/timezone:ro
26+
command: --interval 60 --label-enable
27+
28+
networks:
29+
service-proxy:
30+
external: true
31+
internal:

0 commit comments

Comments
 (0)