-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
73 lines (68 loc) · 1.65 KB
/
docker-compose.prod.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
services:
watchtower:
image: containrrr/watchtower
command:
- '--label-enable'
- '--interval'
- '30'
- '--rolling-restart'
env_file:
- .env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
postgres:
container_name: postgres
image: postgres:latest
ports:
- '5432:5432'
volumes:
- /data/postgres:/data/postgres
environment:
POSTGRES_USER: 'admin'
POSTGRES_PASSWORD: 'admin'
POSTGRES_DB: 'gym-mate'
networks:
- internal
expose:
- '5432'
prisma-studio:
container_name: prisma-studio
image: timothyjmiller/prisma-studio:latest
restart: unless-stopped
environment:
POSTGRES_URL: 'postgresql://admin:admin@postgres:5432/gym-mate?schema=public'
ports:
- 5555:5555
depends_on:
- postgres
networks:
- internal
backend:
container_name: gym-mate-backend
image: ghcr.io/beer-building/gym-mate/backend:prod
labels:
- 'com.centurylinklabs.watchtower.enable=true'
ports:
- '3000:3000'
environment:
DATABASE_URL: 'postgresql://admin:admin@postgres:5432/gym-mate?schema=public'
depends_on:
- postgres
networks:
- internal
restart: always
telegram-bot:
container_name: gym-mate-bot
image: ghcr.io/beer-building/gym-mate/telegram-bot:prod
labels:
- 'com.centurylinklabs.watchtower.enable=true'
environment:
BACKEND_URL: 'http://backend:3000'
DATABASE_URL: 'postgresql://admin:admin@postgres:5432/gym-mate?schema=public'
depends_on:
- backend
networks:
- internal
networks:
internal:
driver: bridge