-
Notifications
You must be signed in to change notification settings - Fork 6
/
compose.yaml
executable file
·92 lines (87 loc) · 2.25 KB
/
compose.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
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
88
89
90
91
92
version: '3.3'
services:
mysql-svc:
image: mysql:8.0.28
container_name: mysql
restart: on-failure
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: ${DATABASE_NAME}
MYSQL_USER: ${DATABASE_USER}
MYSQL_PASSWORD: ${DATABASE_PASSWORD}
MYSQL_ROOT_PASSWORD: noob
networks:
- otserver
ports:
- 3306:3306
volumes:
- ${PWD}/sql/:/docker-entrypoint-initdb.d/
phpmyadmin-svc:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
depends_on:
mysql-svc:
condition: service_started
environment:
PMA_HOST: mysql-svc
PMA_PORT: 3306
MYSQL_USER: ${DATABASE_USER}
MYSQL_PASSWORD: ${DATABASE_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DATABASE_PASSWORD}
networks:
- otserver
ports:
- 9090:80
php-svc:
image: php:8.0-apache
container_name: php
depends_on:
mysql-svc:
condition: service_started
environment:
DOCKER_NETWORK_GATEWAY_ENV: ${DOCKER_NETWORK_GATEWAY}
SERVER_NAME_ENV: ${SERVER_NAME}
DATABASE_NAME_ENV: ${DATABASE_NAME}
DATABASE_USER_ENV: ${DATABASE_USER}
DATABASE_PASSWORD_ENV: ${DATABASE_PASSWORD}
networks:
- otserver
ports:
- 8080:80
volumes:
- ${PWD}/site/:/var/www/html
- ${PWD}/server/:/home/server # mapeamento necessario se for configurar Gesior2012 ou myAAC
server-svc:
image: ubuntu:22.04
container_name: server
depends_on:
mysql-svc:
condition: service_started
restart: on-failure
working_dir: /server
entrypoint: |
/bin/bash -c "
apt update && \
apt install libgomp1 && \
./canary
"
environment:
DOCKER_NETWORK_GATEWAY_ENV: ${DOCKER_NETWORK_GATEWAY}
SERVER_NAME_ENV: ${SERVER_NAME}
DATABASE_NAME_ENV: ${DATABASE_NAME}
DATABASE_USER_ENV: ${DATABASE_USER}
DATABASE_PASSWORD_ENV: ${DATABASE_PASSWORD}
networks:
- otserver
ports:
- 7171:7171
- 7172:7172
volumes:
- ${PWD}/server:/server
networks:
otserver:
driver: bridge
ipam:
config:
- subnet: ${DOCKER_NETWORK_CIDR}
gateway: ${DOCKER_NETWORK_GATEWAY}