-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1.04 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
version: '3.8'
services:
redis:
image: redis:latest
container_name: redis
ports:
- 6379:6379
expose:
- 6379
volumes:
- redis-data:/data
mysql:
image: mysql:latest
container_name: mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: "secret"
MYSQL_DATABASE: "dating_app"
MYSQL_USER: "admin"
MYSQL_PASSWORD: "secret"
expose:
- 3306
ports:
- 3306:3306
volumes:
- mysql-data:/var/lib/mysql
dating-app:
build:
context: .
dockerfile: Dockerfile
ports:
- 8080:8080
depends_on:
- redis
- mysql
environment:
REDIS_URL: redis:6379
MYSQL_URL: "admin:secret@tcp(mysql:3306)/dating_app?parseTime=true"
HTTP_PORT: 8080
TOKEN_SYMMETRIC_KEY: "15345678900234567890143452789012"
EMAIL_NAME: "Dating App"
EMAIL_ADDRESS: "<your email address>"
EMAIL_PASSWORD: "<your email password>"
GIN_MODE: "release"
volumes:
redis-data:
mysql-data:
driver: local