forked from EcrituresNumeriques/anthologie-API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yaml
45 lines (44 loc) · 1.1 KB
/
docker-compose.dev.yaml
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
version: "2"
services:
sails-anthologie:
restart: always
build: .
links:
- mysql-anthologie
- redis-anthologie
ports:
- "8080:80"
environment:
- NODE_ENV=production
- VIRTUAL_HOST=anthologia.ecrituresnumeriques.ca
- VIRTUAL_NETWORK=nginx-proxy
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=anthologia.ecrituresnumeriques.ca
mysql-anthologie:
image: mysql
container_name: mysql-anthologie
command: mysqld --user=root --verbose
volumes:
- /opt/mysqlAnthologie-API:/var/lib/mysql
environment:
MYSQL_DATABASE: "anthologieAPI"
MYSQL_USER: "anthologieAPI"
MYSQL_PASSWORD: "MySQLPassword"
MYSQL_ROOT_PASSWORD: "MySQLPassword"
MYSQL_ALLOW_EMPTY_PASSWORD: "no"
redis-anthologie:
restart: always
image: redis
phpmyadmin-anthologie:
image: phpmyadmin/phpmyadmin
links:
- mysql-anthologie:db
ports:
- 8181:80
environment:
MYSQL_USERNAME: root
networks:
default:
external:
name: root_default