forked from VATSIM-UK/uk-controller-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
87 lines (82 loc) · 2.02 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: "3.9"
services:
# Webserver running PHP-FPM and nginx
web:
build:
context: ./.docker/web
dockerfile: Dockerfile
container_name: web
restart: unless-stopped
working_dir: /var/www
extra_hosts:
- "sso.ukcp.devapp:127.0.0.1"
- "ukcp.devapp:127.0.0.1"
ports:
- "80:80"
- "443:443"
- "6001:6001"
volumes:
- type: bind
source: .
target: /var/www/ukcp
- ./.docker/web/sso:/var/www/sso
- ./.docker/web/etc/nginx/conf.d:/etc/nginx/conf.d
networks:
- ukcp-network
# Database
mysql:
image: mysql:8.0
container_name: mysql
restart: unless-stopped
command: --default-authentication-plugin=mysql_native_password
ports:
- "3306:3306"
volumes:
- mysqldata:/var/lib/mysql
- ./.docker/mysql/etc/mysql/my.cnf:/etc/mysql/conf.d/config-file.cnf
environment:
MYSQL_DATABASE: uk_plugin
MYSQL_ROOT_PASSWORD: secret
MYSQL_AUTHENTICATION_PLUGIN: mysql_native_password
networks:
- ukcp-network
# Database for test suite
mysql-test:
image: mysql:8.0
container_name: mysql-test
restart: unless-stopped
command: --default-authentication-plugin=mysql_native_password
ports:
- "3360:3360"
volumes:
- mysqltestdata:/var/lib/mysql
- ./.docker/mysql/etc/mysql/my.cnf:/etc/mysql/conf.d/config-file.cnf
environment:
MYSQL_DATABASE: uk_plugin
MYSQL_ROOT_PASSWORD: secret
MYSQL_AUTHENTICATION_PLUGIN: mysql_native_password
MYSQL_TCP_PORT: 3360
networks:
- ukcp-network
# Redis
redis:
image: redis:alpine
container_name: redis
command: redis-server /usr/local/etc/redis/redis.conf
ports:
- "6379:6379"
restart: unless-stopped
volumes:
- ./.docker/redis/redis.conf:/usr/local/etc/redis/redis.conf
networks:
- ukcp-network
# Netwokring
networks:
ukcp-network:
driver: bridge
#Volumes
volumes:
mysqldata:
driver: local
mysqltestdata:
driver: local