-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·65 lines (64 loc) · 1.33 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
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '3.1'
services:
web:
container_name: wmcp-web
build:
context: ../web/
dockerfile: ./Dockerfile
links:
- api
- adminer
ports:
- 8080:8080
api:
container_name: wmcp-api
build:
context: ../flask/
dockerfile: ./Dockerfile
links:
- mysql
# env_file: .env.dev
# entrypoint:
# - /bin/bash
# - -c
# command:
# - /usr/bin/npm run db:migrate && /usr/bin/npm start
ports:
- 8090:8080
environment:
- SSH_AUTH_SOCK=/ssh-agent
volumes:
- ..:/src
- $SSH_AUTH_SOCK:/ssh-agent
mysql:
container_name: wmcp-mysql
# image: mysql/mysql-server
build:
context: ./mysql-server/
dockerfile: ./Dockerfile
restart: always
entrypoint: ./docker-entrypoint.sh
command:
- mysqld
- --verbose
- --default-authentication-plugin=mysql_native_password
- --innodb-use-native-aio=0
- --innodb-buffer-pool-size=20M
environment:
MYSQL_DATABASE: findme
MYSQL_ROOT_PASSWORD: root
# MYSQL_ROOT_HOST: 127.0.0.1
MYSQL_USER: dbuser
MYSQL_PASSWORD: MySQL123!
ports:
- 3306:3306
adminer:
container_name: wmcp-adminer
image: adminer
restart: always
ports:
- 8100:8100
networks:
default:
external:
name: localnet