-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml
48 lines (45 loc) · 1.12 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
version: "3.8"
services:
#nestJS api
ac-api:
image: azerothcore/api
restart: unless-stopped
build:
context: .
dockerfile: ./.docker/app/Dockerfile
target: development
user: "node"
working_dir: /usr/src/app
environment:
- NODE_ENV=${NODE_ENV:-dev}
- VERSION=1.0
volumes:
- .:/usr/src/app
- /usr/app/node_modules
ports:
- ${WEBSITE_PORT:-3000}:3000
tty: true
command: npm run start:dev
networks:
- azeroth-network
# database
ac-website-database:
image: azerothcore/website-database
build:
context: .
dockerfile: ./.docker/database/Dockerfile
ports:
- '${WEB_SITE_EXTERNAL_PORT:-3307}:3306'
environment:
- MYSQL_ROOT_PASSWORD=${WEB_SITE_DATABASE_PASSWORD:-password}
- MYSQL_DATABASE=${WEB_SITE_DATABASE_NAME}
- MYSQL_USER=${WEB_SITE_DATABASE_USERNAME}
- MYSQL_PASSWORD=${WEB_SITE_DATABASE_PASSWORD}
stdin_open: true # docker run -i
tty: true # docker run -t
networks:
- azeroth-network
networks:
azeroth-network:
external:
name: azeroth-network