source: docker-compose.yaml @ f160ff2

test-python-scriptsticket-693
Last change on this file since f160ff2 was f160ff2, checked in by Antonio Emmanuel Guerrero Silva <aguerrero@…>, 8 months ago

refs #693 add docker files for test

  • Property mode set to 100644
File size: 1.5 KB
Line 
1services:
2  nginx:
3    container_name: opengnsys-nginx
4    build:
5      context: ./docker
6      dockerfile: Dockerfile-nginx
7    depends_on:
8      - php
9    ports:
10      - 9080:80
11    volumes:
12      - ./public:/var/www/html/public:cached
13    networks:
14      - opengnsys-network
15
16  php:
17    container_name: opengnsys-php
18    build:
19      context: ./docker
20      dockerfile: Dockerfile-php
21    volumes:
22      - ./:/var/www/html
23    environment:
24      XDEBUG_CLIENT_HOST: 127.17.0.1
25      XDEBUG_CLIENT_PORT: 9003
26      PHP_IDE_CONFIG: serverName=ogcore
27    networks:
28      - opengnsys-network
29       
30  python:
31    build:
32      context: ./docker
33      dockerfile: Dockerfile-python
34    container_name: opengnsys-python
35    environment:
36      OPENGNSYS: "/opt/opengnsys"
37      OGCORE: "/opt/ogcore"
38    volumes:
39      - ./client/shared:/opt/opengnsys/
40      - ./client/engine:/opt/opengnsys/client/lib/engine
41    networks:
42      - opengnsys-network
43    #entrypoint: /bin/sh -c "python3 /opt/opengnsys/etc/preinit/default.py && tail -f /dev/null"
44    entrypoint: /bin/sh -c "bash /opt/opengnsys/etc/preinit/default.sh && tail -f /dev/null"
45
46  show_message:
47    image: busybox
48    container_name: final_message
49    depends_on:
50      - nginx
51    command: sh -c 'echo -e "\tAccess NGINX at http://localhost:7500\n\tPlace Clonning-Engine test files for /opt/opengnsys/etc in ./client"'
52    networks:
53      - opengnsys-network
54    deploy:
55      restart_policy:
56        condition: "no"
57
58volumes:
59  database_data:
60
61networks:
62  opengnsys-network:
Note: See TracBrowser for help on using the repository browser.