-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (45 loc) · 1016 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
version: '3.8'
services:
api:
image: ineed-engine:latest
container_name: ineed-engine-api
profiles: ["all", "api"]
build:
context: .
dockerfile: ./build/local/Dockerfile
ports:
- "${APP_PORT}:${APP_PORT}"
restart: always
environment:
DB_HOST: mysql
DB_PORT: 3306
DB_DATABASE: ${DB_DATABASE}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
APP_PORT: ${APP_PORT}
volumes:
- .:/go/src
- ./bin:/go/src/bin
depends_on:
- mysql
networks:
- ineed-engine-network
mysql:
image: mysql:latest
container_name: ineed-engine-db
profiles: ["all", "db"]
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
ports:
- "3308:3306"
volumes:
- mysql_volume:/var/lib/mysql
networks:
- ineed-engine-network
volumes:
mysql_volume:
networks:
ineed-engine-network:
name: ineed-engine-network
external: true