1
0
mirror of synced 2024-11-14 09:47:46 +01:00
artemis/docker-compose.yml

67 lines
1.6 KiB
YAML
Raw Normal View History

2023-05-04 15:46:16 +02:00
version: "3.9"
services:
app:
hostname: ma.app
build: .
volumes:
- ./aime:/app/aime
2023-10-21 19:57:45 +02:00
- ./configs/config:/app/config
2023-05-04 15:46:16 +02:00
environment:
CFG_DEV: 1
CFG_CORE_SERVER_HOSTNAME: 0.0.0.0
CFG_CORE_DATABASE_HOST: ma.db
CFG_CORE_MEMCACHED_HOSTNAME: ma.memcached
2023-10-21 19:57:45 +02:00
CFG_CORE_AIMEDB_KEY: <INSERT AIMEDB KEY HERE>
2023-05-04 15:46:16 +02:00
CFG_CHUNI_SERVER_LOGLEVEL: debug
ports:
2023-10-21 19:57:45 +02:00
- "80:80"
- "8443:8443"
- "22345:22345"
2023-05-04 15:46:16 +02:00
2023-10-21 19:57:45 +02:00
- "8080:8080"
- "8090:8090"
2023-05-04 15:46:16 +02:00
depends_on:
db:
condition: service_healthy
db:
hostname: ma.db
2023-10-21 19:57:45 +02:00
image: yobasystems/alpine-mariadb:10.11.5
2023-05-04 15:46:16 +02:00
environment:
MYSQL_DATABASE: aime
MYSQL_USER: aime
MYSQL_PASSWORD: aime
MYSQL_ROOT_PASSWORD: AimeRootPassword
2023-10-21 19:57:45 +02:00
MYSQL_CHARSET: utf8mb4
MYSQL_COLLATION: utf8mb4_general_ci
##Note: expose port 3306 to allow read.py importer into database, comment out when not needed
#ports:
# - "3306:3306"
##Note: uncomment to allow mysql to create a persistent database, leave commented if you want to rebuild database from scratch often
#volumes:
# - ./AimeDB:/var/lib/mysql
2023-05-04 15:46:16 +02:00
healthcheck:
2023-10-21 19:57:45 +02:00
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-pAimeRootPassword"]
2023-05-04 15:46:16 +02:00
timeout: 5s
retries: 5
memcached:
hostname: ma.memcached
2023-10-21 19:57:45 +02:00
image: memcached:1.6.22-alpine3.18
command: [ "memcached", "-m", "1024", "-I", "128m" ]
2023-05-04 15:46:16 +02:00
phpmyadmin:
hostname: ma.phpmyadmin
image: phpmyadmin:latest
environment:
PMA_HOSTS: ma.db
PMA_USER: root
PMA_PASSWORD: AimeRootPassword
APACHE_PORT: 8080
ports:
2023-10-21 19:57:45 +02:00
- "9090:8080"
2023-05-04 15:46:16 +02:00