-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-prod.yml
82 lines (76 loc) · 1.66 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
74
75
76
77
78
79
80
81
82
version: '3'
services:
legato_server:
image: ragnacodes/legato_server:latest
# build:
# context: .
# dockerfile: deployments/dev/Dockerfile
volumes:
- ./:/usr/src/app
command: [ "go", "run", "cmd/legato_server/main.go" ]
env_file:
- deployments/dev/web.env
- env/.env
environment:
- MODE= prod
ports:
- "8080:8080"
container_name: legato_server
depends_on:
- database
- legato_scheduler
deploy:
restart_policy:
condition: any
legato_scheduler:
image: ragnacodes/legato_server:latest
volumes:
- ./:/usr/src/app
command: [ "go", "run", "cmd/legato_scheduler/main.go" ]
ports:
- "8090:8090"
container_name: legato_scheduler
depends_on:
- redis
database:
image: "postgres"
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
POSTGRES_PASSWORD: legato
POSTGRES_DB: legatodb
POSTGRES_USER: legato
POSTGRES_HOST: database.legato
POSTGRES_PORT: 5432
ports:
- "5431:5432"
container_name: legato_database
pgadmin:
image: dpage/pgadmin4
links:
- database
depends_on:
- database
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: pwdpwd
volumes:
- pgadmin:/root/.pgadmin
ports:
- "5050:80"
redis:
image: "redis:6.2.3"
ports:
- "6379:6379"
volumes:
- redis-data:/data
deploy:
restart_policy:
condition: any
tor:
image: dperson/torproxy
restart: unless-stopped
volumes:
postgres_data:
pgadmin:
redis-data: