-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (57 loc) · 1.32 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
version: '3.8'
services:
api:
container_name: rest-api
build: .
command: ["./urlshortner", "serveapi"]
volumes:
- sqlite_data:/app/data
ports:
- 8653:8653
restart: on-failure
depends_on:
- redis # this for other services.
- sqlite3
networks:
- networkstack
redis:
image: redis:latest
container_name: my-redis
ports:
- 6379:6379
command: ["redis-server", "--bind", "redis", "--port", "6379"]
# environment:
# - REDIS_HOST=redis:6379
# - REDIS_PASSWORD=${REDIS_PASSWORD}
restart: always
networks:
- networkstack
sqlite3:
image: python:3.9-alpine
container_name: my-sqlite3
command: ["sh", "-c", "apk add --no-cache sqlite && python -m pip install sqlite-utils && tail -f /dev/null"]
restart: always
networks:
- networkstack
sqlitebrowser:
image: linuxserver/sqlitebrowser
container_name: sqlitebrowser
ports:
- 3001:3001
- 3000:3000
depends_on:
- sqlite3
environment:
- PUID=1000
- PGID=1000
- TZ=UTC
- ENABLE_UWSGI=true
volumes:
- sqlite_data:/data
restart: unless-stopped
# Networks to be created to facilitate communication between containers
networks:
networkstack:
driver: bridge
volumes:
sqlite_data: