-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (80 loc) · 1.58 KB
/
docker-compose.yml
File metadata and controls
87 lines (80 loc) · 1.58 KB
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
version: '3.7'
services:
db:
container_name: "Shillings_database"
build:
context: .
dockerfile: ./docker/db/Dockerfile
networks:
- default
restart: always
ports:
- '3306:3306'
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "shillings"
MYSQL_USER: "admin"
MYSQL_PASSWORD: "admin"
volumes:
- mysql_data:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password
web:
build:
context: .
dockerfile: ./docker/web/Dockerfile
networks:
- default
ports:
- '8010'
depends_on:
- db
environment:
- WEB_PORT=8010
volumes:
- .:/go/src/cTCP
app:
container_name: "Application_server"
build:
context: .
dockerfile: ./docker/app/Dockerfile
networks:
- default
environment:
- APP_PORT=8020
- DBUSER=admin
- DBPASS=admin
- JWT_KEY=thisisastrongkey
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=setsomerandompass
ports:
- '8020:8020'
depends_on:
- db
- redis
volumes:
- .:/go/src/cTCP
redis:
image: redis:6.2-alpine
restart: always
networks:
- default
ports:
- '6379:6379'
command: redis-server --loglevel warning
volumes:
- cache:/data
nginx:
image: nginx:latest
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- web
ports:
- '8080:8080'
networks:
default:
volumes:
cache:
driver: local
mysql_data: