-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (48 loc) · 1.39 KB
/
docker-compose.yml
File metadata and controls
50 lines (48 loc) · 1.39 KB
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
version: '3'
services:
server:
container_name: ${COMPOSE_PROJECT_NAME}_server
build:
context: ./
dockerfile: ./build/web/Dockerfile
args:
USERID: ${USERID}
GROUPID: ${GROUPID}
HOSTNAME: ${HOSTNAME}
env_file:
- .env
volumes:
- ./composer:/app/.composer
- ./www:/app/www
# - <absolute_path_to_oforge_folder>:/app/www
ports:
- ${HTTP_PORT}:9999
# restart: always
depends_on:
- mysql
adminer:
container_name: ${COMPOSE_PROJECT_NAME}_adminer
image: adminer
environment:
ADMINER_DEFAULT_SERVER: mysql
ports:
- ${ADMINER_PORT}:8080
# restart: always
depends_on:
- mysql
mysql:
container_name: ${COMPOSE_PROJECT_NAME}_mysql
build: ./build/mysql
command: --default-authentication-plugin=mysql_native_password
# restart: always
env_file:
- .env
# volumes:
# - ./build/mysql/data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
ports:
- ${MYSQL_PORT}:3306