-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (45 loc) · 996 Bytes
/
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
version: '3.3'
services:
db:
platform: linux/amd64
container_name: wgc-db
image: 'mysql:8'
restart: always
networks:
- default
ports:
- "3307:3306"
expose:
- "3306"
environment:
- MYSQL_ROOT_PASSWORD=root
volumes:
- dbdata:/var/lib/mysql
- ./services/mysql-server/init.sql:/docker-entrypoint-initdb.d/init.sql
api:
container_name: wgc-api
build: .
ports:
- "8080:8080"
networks:
- default
expose:
- "8080"
depends_on:
- db
- redis
env_file:
- api/.env
volumes:
- ./api:/go/src/app
redis:
container_name: wgc-redis
image: 'redis'
restart: always
ports:
- "6380:6379"
volumes:
- redisdata:/data
volumes:
dbdata: {}
redisdata: {}