-
Notifications
You must be signed in to change notification settings - Fork 0
/
swarm.yml
96 lines (82 loc) · 1.86 KB
/
swarm.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
version: '3'
networks:
codeup_network:
driver: overlay
services:
caddy:
image: karthikkalarikal/micro-caddy-production:1.0.0
deploy:
mode: replicated
replicas: 1
ports:
- "80:80"
- "443:443"
volumes:
- caddy_data:/data
- caddy_config:/config
networks:
- codeup_network
api-gateway:
image: karthikkalarikal/code-up:api-gateway-latest
ports:
- "8080:80"
deploy:
mode: replicated
replicas: 1
networks:
- codeup_network
authentication-service:
image: karthikkalarikal/code-up:authentication-service-latest
deploy:
mode: replicated
replicas: 1
environment:
DSN: "host=postgres port=5432 user=postgres password=password dbname=postgres sslmode=disable timezone=UTC connect_timeout=5"
networks:
- codeup_network
problem-service:
image: karthikkalarikal/code-up:problem-service-latest
deploy:
mode: replicated
replicas: 1
networks:
- codeup_network
go-sandbox:
image: karthikkalarikal/code-up:go-sandbox-latest
deploy:
mode: replicated
replicas: 1
networks:
- codeup_network
postgres:
image: 'postgres:14.2'
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: users
deploy:
mode: global
volumes:
- ./db-data/postgres/:/var/lib/postgresql/data/
networks:
- codeup_network
mongo:
image: 'mongo:4.2.16-bionic'
ports:
- "27017:27017"
deploy:
mode: global
environment:
MONGO_INITDB_DATABASE: problems
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
volumes:
- ./db-data/mongo/:/data/db
networks:
- codeup_network
volumes:
caddy_data:
external: true
caddy_config: